KnowledgeBoat Logo
|

Computer Applications

Constructor overloading follows which principle of Object Oriented programming?

  1. Inheritance
  2. Polymorphism
  3. Abstraction
  4. Encapsulation

Java Constructors

ICSE Sp 2024

37 Likes

Answer

Polymorphism

Reason — In object-oriented programming, Polymorphism provides the means to perform a single action in multiple different ways and constructor overloading follows Polymorphism principle of Object Oriented programming wherein a constructor having the same name behaves differently with different arguments.

Answered By

25 Likes


Related Questions