Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/purvgwtw/public_html/tutorials/common.php on line 7
C++ Interview Questions & Answers
Sponsered Links
Sponsered Links

C++ Interview Questions & Answers

 Differentiate between C and C ++?

C is a structured programming language. The C++ is an object oriented language. C++ is also called as C with Classes. both C and C++ are programming languages C++ is termed as superset of C. C is a powerful and elegant language. almost all c PROGRAMS ARE ALSO c++ PROGRAMS. C, it facilitates--" top down structured design" as against C++ provides bottom-up object-oriented design.

How do you delete an element in array of string?

cut the array size. if (stringarryname) { delete[] stringarryname; delete stringarryname; stringarryname = NULL; }

Differentiate between an overload assignment operator and an a copy constructor?

An overloaded assignment operator assigns the contents of an existing object to another existing object of the same class. A copy constructor constructs a new object by using the subject of the argument object

Define virtual destructor?

The virtual destructor is one that is declared with the virtual attribute. If you destroy an object through a baler or reference to a base class, and the base-class destructor is not virtual, the derived-class destructors are not executed, and the destruction might not be compile

Differentiate between a template class and class template in C++?

Template class: A parameterized class not instantiated until the client provides the needed information. Class template: A class template specifies how single classes can be built much like the way a class defines how single objects can be constructed.

What is the polymorphism in C++?

Polymorphism in the C++ is the idea that a base class can be inherited by several classes. A base class pointer can point to its child class and base class array can store different child class objects.

Sponsered Links
Latest Updates
All Content of this site is for learning only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright © 2014 PURVACOMPUTERS.COM All Right Reserved