Hi there,
I have a simple code, causing run time exception, not sure why ?
Placed below, is the source code and error message:
Error Message:
=============
% javac Shapes.java
%
java Shapes
Exception in
thread "main" java.lang.NoSuchMethodError: Shape: method <init>()V not found
at Square.<init>(Shapes.java:4)
at Shapes.main(Shapes.java:9)