Closed jorabin closed 2 years ago
Do you means super() ?
yes, that's what I meant
This feature is already supported.
Example:
public class Apple {
private String name;
private String color;
public Apple(String name, String color) {
this.name = name;
this.color = color;
}
}
public class GrannySmithApple extends Apple{
public GrannySmithApple(String name, String color) {
super(name, color);
}
}
public class Main {
public static void main(String[] args) {
new GrannySmithApple("Granny Smith", "Green");
}
}
Generate sequence diagram for main
mea maxima culpa, thank you.
I don't think that super constructor calls are followed, would be very handy.