C is the correct answer.
---
A is incorrect as there is no default constructor available in CD class.
B is incorrect as you cannot have two constructor calls
D is incorrect as call to super must be first line of constructor
Answer is C. super(); MUST be first all the time. In the example we have B and C but B is not correct cause I not using the this.r variable so only C is correct
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
azmikadir
Highly Voted 4 years, 2 months agoStewart125
Highly Voted 3 years, 3 months agoa_really_reliable_programmer
5 months, 2 weeks agoSezam
Most Recent 5 months, 1 week agoSezam
5 months, 1 week agoVicky_65
10 months agoAnkit1010
12 months agobakhdak
1 year, 7 months agoarcher1903
1 year, 7 months agoalexandrustefanescu
2 years, 7 months agoSSJ5
2 years, 8 months agolevilevi
3 years, 6 months agoSamAru
3 years, 7 months agov323rs
4 years ago