Solution: A class describes all attributes of objects as well as the method that implements the behavior of member object. Basically, it represents a blue print of object. It is a template of an object. A class contains data & behavior of an entity. Example: Aircraft. Data: Model number of aircraft, Color of aircraft, category of aircraft etc. Behavior/Method: Duration of flight, number of passengers etc.
Solution:
need an explanation for this answer? contact us directly to get an explanation for this answerA class describes all attributes of objects as well as the method that implements the behavior of member object. Basically, it represents a blue print of object. It is a template of an object. A class contains data & behavior of an entity.
Example: Aircraft.
Data: Model number of aircraft, Color of aircraft, category of aircraft etc.
Behavior/Method: Duration of flight, number of passengers etc.