Any entity that has state and behavior is known as an object. For example: chair, pen, table, keyboard, bike etc. It can be physical and logical.
Class :-
A class is a prototype that defines the variables and the methods common to all objects of a certain kind.
No comments:
Post a Comment