Computer Science, asked by sahilsamaiya92, 5 months ago


(e) Create object of class Figure using parameterized constructor. It has two instance variables namely (of
string type) and area (of type int).
[

Answers

Answered by gungunbajpai061105
1

Answer:

Can we have both default constructor and parameterized constructor in the same class?

When you define another constructor in your class, you do not get the "usual" default constructor (public and without arguments) anymore. ... The constructors can call each-other (using this(parameters) ) or shared methods if there is common functionality in

Similar questions