Object is a software bundle of variables and related methods. Objects have state and behavior.
Latest Answer : An object is an instance of the class through which we can access the methods and class variables ...
A virtual function allows derived classes to replace the implementation provided by the base class. The compiler makes sure the replacement is always called whenever the object in question is actually
Latest Answer : It is a functions whose behaviour can be overriden with an inherited class by a function of same signature. It is an important part of OOPS and Polymorphism. ...
"Poly" means "many" and "morph" means "form". Polymorphism is the ability of an object (or reference) to assume (be replaced by) or become many different forms
Latest Answer : C++ enables polymorphism - The ability of obejcts of different classes related by inheritance respond differntly to the same function call. ...
Classes and objects are separate but related concepts. Every object belongs to a class and every class contains one or more related objects. Ø A Class
Latest Answer : Class is a combination of data member & member function where object is used for calling function In class we declare In object we call ...
Packaging an object’s variables within its methods is called encapsulation.
Latest Answer : According to me encapsulation is the process in which we can collect the data members and functions in one place or we can say that to encapsulate the related things. ...
Runtime type identification (RTTI) lets you find the dynamic type of an object when you have only a pointer or a reference to the base type. RTTI is the official way in standard C++ to discover the type
Latest Answer : We can only assign a derived object to a base object pointer and a base class member to a derived class member pointer. ...
Namespaces allow us to group a set of global classes, objects and/or functions under a name. To say it somehow, they serve to split the global scope in sub-scopes known as namespaces. The form to
Latest Answer : Namespace is simply a name given to a global space, to form a sub-space in global space. ...
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
Latest Answer : look this code which tells we can Create an object for pure virtual function:Class Base{ public: virtual void fun()=0;};class deri:public base{ void fun(){ cout