Professional Documents
Culture Documents
Object and Encapsulation
Object and Encapsulation
Object and Encapsulation
ENCAPSULATION
2015-EE-55
HANIA ZAHRA
SUBMITTED TO; MAM SUMMAYA
OBJECTS
The state of objects are referrred by the data stored within the
object at any time moment.
OBJECT TYPES
External
(global)
objects.
Automatic
(local)
object.
Static
object
Dynamic
object
Class student
{
Int rollno;
Char name[20];
Int marks:
}:
Student s:
Rollno-2 bytes
Name-20 bytes
Marks-2 bytes
ARRAY OF OBJECTS
OBJECT AS FUNCTION
ARGUMENTS
(pass by value)
(pass by reference)
ENCAPSULATION
Inheritance
Polymorphis
m
Encapsulatio
n
Abstraction
INTRODUCTION
FLEXIBILITY
EXTENSIBILITY
CONCLUSION
[ENCAPSULATION]
FLEXIBLE
EXTENSIBLE
MAINTAINA
BLE