Unit 2 (Prog 1) : Test Inheritance of class in JAVA
Inheritance Test for OCJP preparation… /* * equals() method is defined under * java.lang.Object class which is inherited by all class having main method * * thus every class is instance of java.lang.Object class * Whenever you create a class, you automatically inherit all of class Object’s methods. */ public class ch21TestClassInheritance { … Read More »