CH3. Object Orientation Flashcards

1
Q

Why do we need OOP?

A

Object Oriented Programming helps us to think in terms of real world objects. I gave an example of a hospital, patient, doctor, the patient is allocated to a doctor or doctor treats a patient. This is the doctor object aggregate inside it. I talked about aggregation. Your code is minicking the real world objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly