Create a Java program to demonstrate constructor chaining
class Parent { Parent() { System.out.println("Parent Constructor"); } } class Child extends Parent { Child() { System.out.println("Child Constructor"); } public static void main(String[] args) { Child child = new Child(); } }
Parent Constructor Child Constructor
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions