Question
Easy

Which of the following constructor related concept is non-relevant in C++?

1
copy constructor
2
conversion constructor
3
overloaded constructor
4
virtual constructor
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Object-Oriented Programming (C++)
Topic: Advanced Class Concepts
Correct Answer
Option D
Explanation

The correct option is (4): The concept of a virtual constructor is non-relevant in C++ because constructors cannot be declared as virtual. The primary purpose of a virtual function is to achieve runtime polymorphism, where the correct function to call is determined based on the actual type of the object pointed to by a pointer or reference. However, when a constructor runs, the object is only partially created, and its…Read More

Which of the following - HTET Level 3 | Clear Cutoff