Composition of objects
All objects are composed of two parts.
1.Attribute (variable) of an object: What does it represent?
2.Method (function) of the object: what can the object do?
All objects are composed of two parts.
1.Attribute (variable) of an object: What does it represent?
2.Method (function) of the object: what can the object do?