In a class, static properties can be accessed using the class name followed by _________.

  • Parentheses
  • Square Brackets
  • Curly Braces
  • Dot Notation
To access static properties in a class, you use the class name followed by dot notation. This distinguishes them from instance properties and makes it clear that you are working with a property associated with the class itself, not an instance.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *