@linkedin @Link @Link2
1 results for core java
  • //inside class double test = Math.PI * 5; //no need to refer class now double test = PI * 5; public class SuperClass { public SuperClass(){ } public SuperClass(int i){} public void test(){ System.out.println("super class test method"); } } public class ChildClass extends SuperClass { public ChildClass(String str){ //access super class constructor with super keyword super(); //access child class method test(); //use super to access super class method super.test(); } @Override public void test(){ System.
    core java Created Thu, 13 Oct 2022 19:59:57 +0530