What is a class?
A class is a
template used to create multiple objects with similar features. Every class has
two components. Attributes and Behaviours. Attribute
differentiates one class from other. Behaviour is the way
a class of objects can do anything to themselves or others. Behaviour of a class of objects is done by methods. Methods are a group of states
and accomplish a specific task.
No comments:
Post a Comment