Please copy the full text of the command prompt window from when the code is executed showing the command line and the printout from the program.
On windows: To copy the contents of the command...
Type: Posts; User: Norm
Please copy the full text of the command prompt window from when the code is executed showing the command line and the printout from the program.
On windows: To copy the contents of the command...
The code:
System.out.println("i am parents method");
}
What you said is printed: "i am parent's method"
Its clear that the posted code is not what is executed and printing the output. The...
You forgot to post the contents of the command prompt window that shows the program's output.
Please edit your post and wrap your code with code tags:
<YOUR CODE HERE>
to get highlighting...
There is no relationship between the class Parent and the class Child. Try again by having the Child class extend the Parent class.