I'm getting the following error when I try to run the code below in NetBeans:
Exception in thread "main" java.lang.ExceptionInInitializerError
at Practice16.main(Practice16.java:13)
Caused by: java.lang.RuntimeException: Uncompilable source code - Dog is not abstract and does not override abstract method compareTo(java.lang.Object) in java.lang.Comparable
at Dog.<clinit>(Practice16.java:3)
Any help in explaining why I am getting this error and how to resolve it would be much appreciated.
Thank you,