You are not logged in.
Pages:: 1
#1 2015-06-10 10:54:25
Default Constructor:
Question:
Which statement is true regarding the creation of default constructor?
Option A):
When class has only constructor with parameter, the compiler creates a Default constructor
Option B):
The default constructor initializes the instance variables declared in the class
Option C):
The default constructor initializes local variables
Option D):
The default constructor invokes the constructor of the superclass
Correct Answer is Option B):
The default constructor initializes the instance variables declared in the class
You cannot discover the new oceans unless you have the courage to lose the sight of the shore.
Offline
2015-06-10 10:54:25
- Advertisement
- Ads By Google
Re: Default Constructor:
Pages:: 1