OOPS

Encapsulation

“Hiding of data.”

Process of hiding:

Done using access modifiers.

friend violates the concept of object oriented programming.

Inheritence

Process by which one object gains the properties of another objects.

oq_AIaqkKGXBpSXCpadboeTmdHEBO4odqc8OCwIeD3cR2wfKmQP6LnUi44K0f1n50AA92m00

oq_AIaqkKGXBpSXCpadboeTmdHEBOCpm_FmKk716OYPSmZUnABiOnd79BCiipipFuu8Qf61JewiBDWQaNq4Bn05h1kjIo0VouLe0

Types:

Composition is when “life of object depends on subclass”.

Multi-Level Inheritence

oq_AIaqkKGZDoonBBIhEBAbKuCg723ddv-IafgV2k2wf1Ob59RcfUIKm4RV4vDASaaekBYJDDZMwkd2TK1eYYAGVmOH8mGq20000

In general, the code should be highly cohesive & loosely coupled.