[Solved] derived class not needing some of the parent methods or attributes

I’m not quite sure what you are trying to do with this. But I think this will clear up the things for you. public class Course{ private String course = “CS101”; } public class FinishedCourse extends Course{ public void displayCourse(){ System.out.println(super.course); //compilation error. //You cannot access private variables even if it is in direct parent … Read more

[Solved] I’m not understanding what the error comment is trying to tell me

Change public Circle(radius,x, y){ this(5, 3, 6); } To public Circle(int radius,int x, int y){ //need to add types to parameters this.radius=radius; this.x=x; this.y=y; } Or if you plan to use 5,3,6 as constant values add public Circle(){ this.radius=5; this.x=3; this.y=6; } 1 solved I’m not understanding what the error comment is trying to tell … Read more