1.explicit call for destructor 2.calling function inside a constructor. 3.base *b-new derived delete b; 4.delete p what it will delete. 5.size of base class and derived class int i,in base class and int j in derived. 6.int i-20 int main() { int i =5; printf("%d".::i); { int i =10; printf("%d".::i); } } 7.object slicing 8.new 9.function overloading(return type). 10.class base() { virtuval fun() { ----- } } class derivied:public base() { fun() { ----- } } int main() { derived d; } 11.how static function will call in C++? 12.default structures are in C++? 13.constructors should be in public . 14.virtuval constructor not exist. 15.multilevel inhritence. destructor order.
1 4424Post New Tech Mahindra OOPS Interview Questions
Does mongodb need lots of ram?
Why we use mysql workbench?
How to use file based sessions?
Explain session_timeout parameter?
What is an attribute tag?
What is quadrantal symmetry?
Can we insert null in set?
Water boiling point temperature is 100 deg. In which liquid state is convert into the gas state,but in turbine which principle is use by which exhaust temperature is 50-55 deg and is in the stage of steam?
How do configure a user to login to sap grc system?
What are the different authentication methods that can be configured in sap fiori for internal and external company communication?
What are the types of caching in asp.net?
What is the role of vector embeddings in Generative AI?
What is a command and examples?
What is an application server in simple words?
How navigation works in sapui5?