Computer Science, asked by Anonymous, 2 days ago

1. Name any two object oriented programming principles.

2. Define Abstraction. with examples.​

Answers

Answered by BlinkTanya
2
  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.
Answered by MrRdx
142

❶ 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.

________________________________

Similar questions