Question
Easy

A constructor with no argument is ........... .

1
Default
2
Parameterized
3
Copy
4
All options are wrong
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter:
Topic:
Correct Answer
Option A
Explanation

The correct option is (1): A constructor in object-oriented programming (OOP), such as in C++, is a special member function used to initialize the objects of its class. The specific type of constructor that does not accept any arguments is formally known as a Default Constructor. Every class is guaranteed to have one; if the programmer does not explicitly define any constructor, the compiler will automatically provide an implicit default…Read More