Professional Documents
Culture Documents
These ODBs were developed for applications that have requirements requiring
more complex structures for stored objects. A key feature of object databases
is the power they give the designer to specify both the structure of complex
objects and the operations that can be applied to these objects.
while objects in ODBs exist beyond the life of the program, these kind of objects
are know as persistence objects.
1- complex objects
Complex objects can be represented as the following:-
5- type constructer
Type constructer determine how the object is constructed
Determine the basic structure of the object
E) array:-
Array is similar to a list, but with a fixed size
F) tuple:-
A tuple is a collection of elements which can have the previous mentioned
types
The tuple can be represented as the following
<O1:I1 , O2:I2,…………………………On:In>
Example:-
6- abstraction:-
Abstraction hides implementation details while just presenting the features
to the outside world
eg: abstract art
Advantages of abstraction
1. Reduce code complexity
2. Hides the details & exposing the essential parts
eg: ODBs
Hides detailed of how data is stored and created & maintained
7- encapsulation:-
Hides data for purpose of protection
By writing data and functions/code into a single unit
In the OO paradigm, classes related through the ISA relationship are organized
into a class hierarchy.
There may have attribute and/or method name conflicts among a class and its
superclasses.
A class inherits properties (attributes and methods) from its superclasses in
the class hierarchy.
When a class inherits several commonly named properties of its superclasses,
a conflict situation occurs which is resolved differently in different OO
systems.
Any question ?