Design a class rectangle with length and breadth as members, constructor, parameterized constructor, calcarea() and displayarea() as member functions. 2. Create two objects r1 and r2. 3. Read length and breadth as input from user and pass them to r2 using parameterized constructor.
Answers
Answered by
0
.......???????????????????????????????????
Answered by
0
Answer:
The parameterized constructors are the constructors having a specific number of arguments to be passed. The purpose of a parameterized constructor is to assign user-wanted specific values to the ins.tance variables of different objects. A parameterized constructor is written explicitly by a programmer.
Similar questions