DEV Community

Discussion on: Why is it important to create a default constructor explicitly when we create a parametrized constructor explicitly??

Collapse
 
phagunjain profile image
PHAGUN JAIN • Edited

@TaiKedzierski
Thank you for your feedback s , I appreciate and value the time you put in here. also, I don't know why you think it is groovy or something else because it is java as i know and i don't groovy and other stuff

yes I agree that Calling the superclass's constructor is a choice but I was referring to the situations when we need member variables of super class, I should have been cautious about mentioning that thank you for putting this in light since I learnt this stuff just recently I felt like sharing but you cleared the thing more for me.

Collapse
 
taikedz profile image
Tai Kedzierski

My apologies - I tested the syntax, your code is indeed standard Java, I was wrong.

Java has changed over the years, I have apparently not kept up with the standards.