class

The keyword class is used to define a user defined (abstract) data type. It is then followed by the user defined class name (/identifier) and a pair of curly braces { }

e.g class className { }

 

As you can see the above is not too useful on its own and this is because classes usually contain class members, consisting of attributes (/properties) and behaviours (/methods).

Leave a Reply