In C++, which function has the same name as the class and is called automatically when an object is created ?
Asked in TPSC Senior Technical Assistant 2026
Answer under review: our editors are checking this question. Try the other TPSC Prelims previous year questions questions meanwhile.
More TPSC Prelims previous year questions questions
- Which keyword is used to create an object in Java ?
- Which OOP concept hides internal data from outside access ?
- Which access specifier in C++ allows access only within the class ?
- Which of the following would successfully overload the method void calculate(int a, double b) ?
- In Java, which keyword prevents a class from being inherited ?
- Which of the following correctly defines runtime polymorphism in C++ ?
- In Java, what is the output of System.out.println(10/3) ;
- In OSI Model, which layer is responsible for end-to-end error recovery and flow control ?