Define the class Use the class Constructor The constructor function is optional, if defined it is automatically called when an object is instantiated.
Category: Classes
Global members of a class
Defining static members Accessing outside of the class
Inheritance of a class
Create a class that inherits from a parent class Define a class that inherits from another Now, objects of class MyChildClass can call MyChildFunction(), but objects of MyParentClass can’t. Overriding functions in a parent class Protected members Members (variables, functions, etc) can be defined with one of the following protection levels: