C++ VIVA Question and Answers
C++ VIVA Question and Answers
What is C++
C++ is created by BjarneStroustrup of AT&T Bell Labs as
anextension of C, C++ is an object-oriented computer language used
inthe development of enterprise and commercial applications.Microsoft’s
Visual C++ became the premier language of choiceamong developers
and programmers.
3.Define inheritance?
4.Define polymorphism?
5.What is encapsulation?
10.Define Constructors?
A constructor is a member function with the same name as its class. The
constructoris invoked whenever an object of its associated class is
created.It is calledconstructor because it constructs the values of data
members of the class.
12.Define destuctors?
A destructor is called for a class object when that object passes out of
scope or isexplicitly deleted.A destructors as the name implies is used to
destroy the objectsthat have been created by a constructors.Like a
constructor , the destructor is amember function whose name is the
same as the class name but is precided by atilde.
13.What is a class?
A class is a collection of objects.
What isdefaultconstructor?
What ismultipleinheritance?
A class can inherit properties from more than one class which is known
asmultiple inheritance.