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

OOPS

Question 30

How constructor differ from destructor?

A
Constructors can be overloaded but destructors can’t be overloaded
B
Constructors can take arguments but destructor can’t
C
Constructors can be overloaded but destructors can’t be overloaded and Constructors can take arguments but destructor can’t
D
None of the given options
Question 30 Explanation: 
Constructors can be overloaded but destructors can’t be overloaded.
Destructors cant be overloaded because your code wouldn’t have a clue about which destructor it needs to call when you destroy an object.
Correct Answer: C
Question 30 Explanation: 
Constructors can be overloaded but destructors can’t be overloaded.
Destructors cant be overloaded because your code wouldn’t have a clue about which destructor it needs to call when you destroy an object.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!