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 3665Post New Tech Mahindra OOPS Interview Questions
Is singleton a design pattern?
Explain what are components of reportnet?
How do I combine two columns of names in excel?
How to remove tsrs and startup programs?
How many types of insurance companies are there?
What is the difference between first level cache and second level cache?
What is permuted esn?
How does mongodb replication work?
Define Object relationship overview?
Which is faster hashmap or hashset?
What is ado code?
What is drush used in drupal?
How do you sort a table in word?
How do you reboot a pc?
What is signal flow graph?