Exception in thread "main" java.lang.Error: Unresolved compilation problems:
c cannot be resolved to a type
Cannot instantiate the type Cylinder
and the error that i have is here . . .
What error and where exactly? In order to get the best answer(s) you need to be specific about the problem you're facing and TellTheDetails.
Besides the fact that the code you provided cannot be compiled (as such), the only detail I can see being wrong for now is that you try to instantiate an object of abstract class, so I would recommend you read this.
in which will look like this
output is this
Please select from the menu below
1. Instantiate a Circle
3. Instantiate a Cylinder
Enter your choice
i guess i can only use abstract in parent or the head of the class which is the Point
Kemal Sokolovic wrote:Well, you might review the tutorial I gave you in the previous post. Also similar topics were covered couple of times here at the forum, so if you search a bit you can find a lot of information (like this).
thank you for the link