Ask your own question, for FREE!
Computer Science 20 Online
OpenStudy (anonymous):

What is the purpose of a class constructor?

OpenStudy (anonymous):

it will help in inheritance to rewrite the data field of super class ex: public class GeometricObject() \\\\ super class private String color; private boolean Filled: } public class Circle(String color,boolean filled,double radius){ \\\\ sub class super(color,filled) ; \\\\ it called the data filled of super class this.radius=radius;

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!