-
-
-
-
What is a class?
Class is a user-defined data type in C++. It can be created to solve a particular kind of problem. After creation the user need not know the specifics of the working of a class. �
-
-
What is the difference between class and structure?
Structure: Initially (in C) a structure was used to bundle different type of data types together to perform a particular functionality. But C++ extended the structure to contain functions also. The major difference is that all declarations inside a structure are by default public. Class: Class is a successor of Structure. By default all the members inside the class are private.
-
-
What is public, protected, private?
Public, protected and private are three access specifiers in C++. 1. Public data members and member functions are accessible outside the class.2. Protected data members and member functions are only available to derived classes.3. Private data members and member functions can�t be accessed outside the class. However there is an exception can be using friend classes.
-
Binary
Write a program that continues to ask the user to enter any decimal number and calculate it’s binary,octal and hexadecimal equivalent.
-
Static Polymorphism
What is Static Polymorphism? Give its syntax and simple example.
-
Inheritance in C++
While doing inheritance in C++, one thing that is not inherited is what?
-
What is out put of C++ code?
cclass base
{
public:
virtual void display(int i = 10)
{
cout -
-
-
What is abstraction?
Abstraction is of the process of hiding unwanted details from the user.
-
Matrix Operation using Operator Overloading
Write a program for four atrithmetic operations in matrix using operator overloading.
-
-
-
-
C++ Interview Questions
Ans