edited by
814 views

1 Answer

Best answer
2 votes
2 votes
Any number of constructors are allowed, provided their parameters differ from each other.

Example-

Class A{

int a, b;

A(){

this.a=5;

}

A(int a){

this.a=a;

}

A(int a, int b){

this.a=a;

this.b=b;

}

}
selected by

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
0 answers
2
rishu_darkshadow asked Sep 25, 2017
1,069 views
When a language has the capability to produce new data types, it is said to be :extensible encapsulated overloaded none of the above...