0

Write a java code to be included in class line such that it inherits the constuctor(s) of class point

https://code.sololearn.com/cq1ejspKsivs/?ref=app

21st Oct 2022, 12:10 PM
Robinson Otieno
Robinson Otieno - avatar
1 Answer
+ 1
Super class constuctor with 2 arguments but your subclass class call default constructor of empty arguments. Add default constructor or call super class 2 argument constructor in subclass constructor..
21st Oct 2022, 12:30 PM
Jayakrishna 🇼🇳