Question
Easy
_ is used to declare and initialize an object from another object of same class in C++.
1
Copy constructor
2
Default constructor
3
Overloaded constructor
4
Non-parametrized constructor
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 Copy constructor is a special member function in C++ explicitly designed for object initialization scenarios where a new object is created as a copy of an existing object of the same class. Its primary role is to ensure that when you declare a new object and initialize it with an old one (e.g., MyClass obj2 = obj1; or MyClass obj2(obj1);), the new object receives…Read More
Similar Questions from REET Exam - Paper 1 - Year 2018
Question 1
Easy
Source :
HTET 2019
Which of the following does not give red-brown precipitate with Fehling reagent?
Chapter :
Organic Chemistry – Functional Groups
Topic :
Carbonyl Compounds
Question 2
Easy
Source :
HTET 2019
What is the difference between Gross Domestic Product (GDP) and Gross National Product (GNP)?
Chapter :
Computerised Accounting and Trade Environment
Topic :
International Trade
Question 3
Easy
Source :
HTET 2019
Based on the following information answer the question :
Chapter :
Statistics for Economics
Topic :
Data Collection
Question 4
Easy
Source :
HTET 2019
The following is the information drawn from the National Income Account for an economy:
Chapter :
Indian Economy: Structure & Planning
Topic :
Sectors of the Indian Economy & National Income