Object orientation is a programming technique that models real-world objects and their interactions. An object has attributes that define its state and behaviors that define its actions, and objects of the same type are implemented using classes. Classes define common attributes and behaviors for a set of objects. The document provides school classes and students as an example of modeling real-world objects in an object-oriented program.
Object orientation is a programming technique that models real-world objects and their interactions. An object has attributes that define its state and behaviors that define its actions, and objects of the same type are implemented using classes. Classes define common attributes and behaviors for a set of objects. The document provides school classes and students as an example of modeling real-world objects in an object-oriented program.
Object orientation is a programming technique that models real-world objects and their interactions. An object has attributes that define its state and behaviors that define its actions, and objects of the same type are implemented using classes. Classes define common attributes and behaviors for a set of objects. The document provides school classes and students as an example of modeling real-world objects in an object-oriented program.
This is a technique in which we visualize our programming
problem in the form of objects and their interaction as happens in our real life.
OOAD by Suneel Kumar 1
Object example: School System
OOAD by Suneel Kumar 2
OOP • SO What does that mean? In our daily life everything can be taken as an object that behaves in a certain way and has certain attributes. • OOP Model? Abstraction of something real or conceptual. These are needed to understand the aspect of reality. Examples: Highway maps, Architectural models and Mechanical Models
OOAD by Suneel Kumar 3
OOP Models
OOAD by Suneel Kumar 4
OOP Models
OOAD by Suneel Kumar 5
What is Object
• Something tangible (Ali School, House, Car) or Intangible/Conceptual
(Time, date etc.). • Object have some state (attributes), well defined behaviors (operations) and unique identity.