SOFTWARE DESIGN
OBJECT ORIENTED DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Class
|
|
Agent
|
|
Object
|
|
Attributes
|
Detailed explanation-1: -Class. An entity that has a well-defined role in the application domain about which the organization wishes to maintain state, behavior, and identity. Object. An instance of a class that encapsulates data and behavior.
Detailed explanation-2: -An entity that has state and behavior is known as an object e.g., chair, bike, marker, pen, table, car, etc. It can be physical or logical (tangible and intangible). The example of an intangible object is the banking system.
Detailed explanation-3: -A class is a user-defined type that describes what a certain type of object will look like. A class description consists of a declaration and a definition. Usually these pieces are split into separate files. An object is a single instance of a class. You can create many objects from the same class type.
Detailed explanation-4: -Class is a blueprint or template from which objects are created. Object is a real world entity such as pen, laptop, mobile, bed, keyboard, mouse, chair etc. Class is a group of similar objects.