You are viewing a single comment's thread. Return to all comments →
You should call the constructor of the parent class from the child class, i.e., the Square class constructor should call super(s, s).
super(s, s)
You can check the editorial.
Seems like cookies are disabled on this browser, please enable them to open this website
Day 5: Inheritance
You are viewing a single comment's thread. Return to all comments →
You should call the constructor of the parent class from the child class, i.e., the Square class constructor should call
super(s, s)
.You can check the editorial.