Static Methods and Properties
Static class members belong to the class itself rather than to any individual instance. They are accessed on the class constructor (e.g., MyClass.staticMethod()), not on instances. Static members are ideal for utility functions, factory methods, constants, and shared configuration.
Static Methods
Prefix a method with the static keyword. Static methods cannot access this as an instance — this inside a static method refers to the class itself. They are not accessible on instances.
Static Properties (Fields)
Static fields (class fields proposal, widely supported) define shared properties on the class. They are set once when the class is evaluated, not per instance.
Static Inheritance
Subclasses inherit static methods from their parent class. You can override static methods just like instance methods.