A constructor for the class Area having two data members length and breadth is declared as followsArea (int length = 15, int breadth = 10); Which one of the following object declarations is illegal?
- Area A(20, 10);
- Area A();
- Area A = Area (20, 10);
- Area A;
Answer:
Option d: Area A;
Explanation Here
0 Comments