![]() Related Questions Latest Answer : When classes are inherited, we need to make the base class destructor virtual – to make sure when the object is destroyed, all the derived class destructors also called. Otherwise the derived class destructors are not called because the there is compile ... Explain "passing by value", "passing by pointer" and "passing by reference" Tags : Pointer Latest Answer : The return type of the printf() function is 'int'. (lot of confusion surrounding the return type of printf -- correct answer is 'int') ... Latest Answer : there is no way to process an entire string.it has to be done char by char ... Latest Answer : Polymorphism is the ability to assume many forms. In short it refers to several methods / operators sharing the same name but having different parameter list and different implementations. Variables also can be polymorphic. There are two ways polymorphism ... Latest Answer : /*without virtaul*/#include #includeusing namespace std;class Base{ public: void fun() ... Can we call constructor of superclass directly without using super()method in subclass? if yes,explain,if no,why? Latest Answer : Abstraction is just like a Hotel room where a single person wants only
1bed+bathroom but family required minimum of double bed +bathroom. Whereas few
people want AC system or hot water system or TV like accessories but other
don’t. During the ... Read Answers (6) | Asked by : Nagasree V Latest Answer : desturctor is to destory objects.this is denoted by '~'.for eg:class alpha{public:read(int);disp();~alpha();};void alpha::read(){couti;}void alpha::~alpha(int i){i--;cout Read Answers (2) | Asked by : muthu Latest Answer : OOPs is Object Oriented Programming.The great thing about OOPs is that is all about classes and objects which can easily correlated with real life scenarios.Class is the general thing and object is the specilisation of general thingFor example if ... Read Answers (1) | Asked by : kalps Tags : OOPS
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||