1. Name any two object oriented programming principles.

2. Define Abstraction. with examples.​

By Ayla

1. Name any two object oriented programming principles.

2. Define Abstraction. with examples.​

About the author
Ayla

2 thoughts on “1. Name any two object oriented programming principles.<br /><br />2. Define Abstraction. with examples.​”

  1. ❶ There are two object oriented programming principles are :

    • Encapsulation
    • Inheritance

    ━━━━━━━━━━━━━━━━━

    ❷ Abstraction refers to the act of representing essential features without including the background details. Abstraction is relative to the perspective of the viewer.

    For example, a building can be viewed as a single comment (e.g., hospital) rather than separate components, such as cement, bricks, and rods.

    ________________________________

    Reply
    1. Object-Oriented Principles. Encapsulation, inheritance, and polymorphism are usually given as the three fundamental principles of object-oriented languages (OOLs) and object-oriented methodology.
    2. Abstraction is a technique of hiding unnecessary details from the user. The user is only given access to the details that are relevant. Vehicle operations or ATM operations are classic examples of abstractions in the real world.
    Reply

Leave a Reply to Sadie Cancel reply