Question: For the following code segment public class Child extends Parent { } class Parent { public Parent ( int x ) { } } Which
For the following code segment
public class Child extends Parent
class Parent
public Parentint x
Which of the following statements are true?
Compile error since there is no default constructor in child class.
Compiles fine.
Compile error since there is no default constructor in Parent class.
Compile error since Parent is a keyword.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
