![]() Related Questions Virtual destructors: If an object (with a non-virtual destructor) is destroyed explicitly by applying the delete operator to a base-class pointer to the object, the base-class destructor function (matching Latest Answer : Virtual constructor is not build-in C++ feature but it doesn't mean its not used by devs in code and in conversations. There are many other things that doesn't exist in particular language yet, people find ways around to solve it (SingleTon, Virtual Constructor, ... What is the Basic nature of "cin" and "cout" and what concept or principle we are using on those two? Basically "cin and cout" are INSTANCES of istream and ostream classes respectively.And the concept which is used on cin and cout is operator overloading. Extraction and Insertion operators are What will be output of the following code#includeusing namespace std;class abc{ public : void main() { cout what is inheritance? why we use it? plzz can anybody explain me with one example and where we use that concept? Latest Answer : The main use of inheritance is to provide reusability of codes .Through inheritance base class objects and functions are acquired by derived class so there is no need to specify it again in derived class ... Tags : Inheritance What is the concept of file stream in C++? How is a file opened and closed in C++? Latest Answer : File stream are opened when default constructor was called and closed during destructor called. ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||