Imagine you are developing a Graphic Design Application where different types of shapes are drawn. Which OOP concept will simplify the code? 

  • Inheritance 
  • Polymorphism 
  • Encapsulation 
  • Abstraction
Abstraction allows for simplifying complex reality while exposing only the necessary parts. By abstracting the concept of a shape, each specific shape (like Circle, Rectangle, Triangle) can implement its drawing method while adhering to a common interface or abstract base class.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *