Académique Documents
Professionnel Documents
Culture Documents
ABSTRACTION:
Capturing only those details about an
object
PATIENT
-medical history
-ongoing treatment
+gets admitted()
+undergoes treatment()
+gets discharged()
DOCTOR
-working id
-designation
-specialization
-visiting timings
-salary
+checks the patient()
+prescribes the patient()
OVER-RIDING:
Extending, limiting or improving
the default
Behavior of the base class
SUB-TYPING:
Says that The derived class is
behaviorally in compatible with
The base class & can replace it
SPECIALIZATION:
Says that
the derived class is behaviorally
incompatible
With the base class & cant replace
it.
ONE-WAY ASSOCIATION:
Its a relationship between two objects of different
classes in which one objects serves the other. As in
the given example doctors serves the patients by
providing treatment.
TWO-WAY ASSOCIATION:
Its a type of association in which both objects
serve each other. For instance, doctor treats the
patient and the patient in turn pays the doctor.
AGRREGATION:
The relationship between the container & the
contained object is called aggregation. Its a weaker
relationship because the aggregated components
can exist independently. In the given example the
POLYMORPHISM:
a function having the same
name but different
functionalities is said to be showing
polymorphism.
For instance, the function having the name
registration in the person class performs different
function in context of derived classes. In patient
class it takes the input as the entry