Constructor Overloading Flashcards

1
Q

What is constructor overloading?

A

A class can have any number of constructors. These constructors will have different list of arguments. It is called constructor overloading.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the use of constructor overloading?

A

Constructor overloading provides different ways to instantiate a class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

More Java on Constructors

A

https://javaconceptoftheday.com/constructors-in-java/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly