gudii9
asked on
constuctor calling other constructor
Hi,
I was reading as below
For one constructor to invoke another constructor, we use this keyword and pass
arguments within the parenthesis. Ex: this(10), this(10, ‘a’) etc.
I never remember calling one constructor from other constructor.
Which scenarios we need to call like above. what are practical uses of it. Please advise
I was reading as below
For one constructor to invoke another constructor, we use this keyword and pass
arguments within the parenthesis. Ex: this(10), this(10, ‘a’) etc.
I never remember calling one constructor from other constructor.
Which scenarios we need to call like above. what are practical uses of it. Please advise
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.