2. Object Oriented Systems
Characteristics of OO Systems
1. Classes and Object
Class , Object, attribute, behavior
Class Object
1-Feb-182
Student
-Name
-Register Number
-Address
-Mail-id
-Phone number
+ Insert()
+Delete()
aStudent
Name =“Ashok”
Register Number =“20201”
Address = “13 Mount
Road”
Mail-id =
“ashok@gmail.com”
Phone number =
“5559652”
+ Insert()
+Delete()
3. Characteristics of OO Systems
2. Method and Messages
Method : implements an object behavior
Message: Info. sent to object to trigger methods
1-Feb-183
Student
-Name
-Register Number
-Address
-Mail-id
-Phone number
+ Insert()
+Delete()
Insert
New
Instance
4. Characteristics of OO Systems
3. Encapsulation and Information Hiding
Encapsulation : combination of process and Data
Info. Hiding: Reusability , Data Hiding
1-Feb-184
5. 4. Inheritance
Super class : common attributes and methods
Sub Class : Specific class
1-Feb-185
Person
Doctor Patient
SpecialistGeneral
Practitioner
Abstract Class
Concrete Class Concrete Class
Concrete Class
6. Object Oriented Systems
Characteristics of OO Systems
• Polymorphism and Dynamic Binding
Same Message interpreted differently by different class
Area() - Circle, Square, Triangle
Dynamic Binding
Determine the type of object at run time
1-Feb-186