Can a class inherit the constructors of its superclass?
Answer Posted / gayathri
System.out.println("This is super class Constructor");
class Code3 extends Parent
System.out.println("This is child class");
public static void main(String ar)
Code3 c=new Code3();
Here if i call the child class constructor,even the parent class constructor is implicitly invoked,that means constructors can be inherited.
|Is This Answer Correct ?||2 Yes||2 No|
Can we execute a program without main?
What is keyset in java?
Can an object subclass another object?
Explain wait(), notify() and notifyall() methods of object class ?
Explain the importance of throws keyword in java?
How can we find the sum of two linked lists using stack in java?
How to make a class or a bean serializable?
What is the original name of java?
What an i/o filter?
What are the four pillars of java?
Explain static nested classes ?
How to implement a multithreaded applet?
What is not object oriented programming?
Which programming language is best in future?
What is data type example?