C++ Questions

Q:

What are the basic concepts of object oriented programming?

Answer

It is necessary to understand some of the concepts used extensively in object oriented programming.These include


Objects
Classes
Data abstraction and encapsulation
Inheritance
Polymorphism
Dynamic Binding
Message passing

Report Error

View answer Workspace Report Error Discuss

Subject: C++

0 1871
Q:

What is default constructor?

Answer


A default constructor is a constructor that either has no parameters, or if it has parameters, all the parameters have default values.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

0 1828
Q:

what is the use of virtual destructor in c++?

Answer

A destructor is automatically called when the object is destroyed. A virtual destructor in C++ is used primarily to prevent resource leaks by performing a clean-up of the object.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

0 1781