Professional Documents
Culture Documents
CONCEPTS
INTODUCTION :
An object database is managed by an object-oriented database
management system (OODBMS). The database combines object-oriented
programming concepts with relational database principles.
OOP’S CONCETPS:
Polymorphism
Inheritance
Encapsulation
Polymorphism:
example :
The result changes depending on which vehicle performs.
Inheritance:
Example:
A parent class called Vehicle will have child classes Car and Bike.
Both child classes inherit information from the parent class and extend the
parent class with new information depending on the vehicle type.
Inheritance are classified into six types they are
Single inheritance.
Multi-level inheritance
Multiple inheritance
Multipath inheritance
Hierarchical Inheritance.
Hybrid Inheritance.
Encapsulation:
Example:
A car has descriptive characteristics and actions. You can change
the color of a car, yet the model or make are examples of properties that cannot
change. A class encapsulates all the car information into one entity, where some
elements are modifiable while some are not.