When we call a constructor method among different given constructors. We match the suitable constructor by matching the name of constructor

Ivanesn

New member
When we call a constructor method among different given constructors. We match the suitable constructor by matching the name of constructor first, then the number and then the type of parameters to decide which constructor is to be overloaded. The process is also known as?
A. Method overriding
B. Inheritance
C. Polymorphism
D. Encapsulation
 

Tìm kiếm

Back
Top