...
OOPS
August 29, 2024
OOPS
August 29, 2024
OOPS
August 29, 2024
OOPS
August 29, 2024

OOPS

Question 205
A __________ is a special method used to initialize the instance variable of a class.
A
Member function
B
Destructor
C
Constructor
D
Structure
Question 205 Explanation: 
→ A constructor is a special method used to initialize the instance variable of a class.
→ Constructor is a special type of subroutine called to create an object. It prepares the new object for use, often accepting arguments that the constructor uses to set required member variables.
Correct Answer: C
Question 205 Explanation: 
→ A constructor is a special method used to initialize the instance variable of a class.
→ Constructor is a special type of subroutine called to create an object. It prepares the new object for use, often accepting arguments that the constructor uses to set required member variables.

Leave a Reply

Your email address will not be published. Required fields are marked *