kazi Shahin wrote:
This showing the following error
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The public type inheritenceTry0 must be defined in its own file
The public type inheritenceTry1 must be defined in its own file
The public type inheritenceTry2 must be defined in its own file
at inheritenceTry1.<init>(inheritenceTry.java:22)
at inheritenceTry.main(inheritenceTry.java:7)
How can I solve it.
I have just tried to practice inheritance code.
kazi Shahin wrote:How can I solve it.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
kazi Shahin wrote:The public type inheritenceTry0 must be defined in its own file
Actually what does this error means?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
kazi Shahin wrote:I'm tring and tried.
what does it mean "in its own file " ?
What is it own file?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
kazi Shahin wrote:I'm tring and tried.
what does it mean "in its own file " ?
What is it own file?
kazi Shahin wrote:Still a bit confused.
I think, there are error in class declaration.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
luck, db
There are no new questions, but there may be new answers.
kazi Shahin wrote:Still a bit confused.
Jeff Verdegan wrote:
kazi Shahin wrote:Still a bit confused.
Do you understand the difference between a class being in a file all by itself, and being in a file with other classes?
kazi Shahin wrote:
in every file there may be lots class
kazi Shahin wrote: I want to clear how to pile all class with the main class?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
kazi Shahin wrote:in every file there may be lots class
but must have a main class.
At the beginning of my post, I have code several class but, don't know clearly how to pile all class together.