👤

give five example of class ​

Sagot :

Answer:

Class - Human being. Man - an object of Human being. ...

Class - colour. Red - an object of colour. ...

Class - pets. Dog - an object of pets. ...

Class - Wild animals. Tiger - an object of Wild animals. ...

Class - drinks. ...

Class - pen. ...

Class - water. ...

Class - tea.

Explanation:

Definition: A class is a blueprint that defines the variables and the methods common to all objects of a certain kind. The class for our bicycle example would declare the instance variables necessary to contain the current gear, the current cadence, and so on, for each bicycle object.