- A class is a collection of things which posses common similarities
- Ex: Birds is a class contain common similarities / Features like,
- Every bird has two legs
- Every bird has two wings
- Every bird has some color
- Every bird can fly etc;
Object
- An object is used to represent the class
- An object is defined as Instance of a class
- Ex: Parrot is an object for Birds class
No comments:
Post a Comment