C++ Interview Questions
Questions Answers Views Company eMail

What is the difference between class and structure?

7 9237

What is public, protected, private?

IBS, Satyam,

6 14683

What are virtual functions?

2 4454

What is friend function?

Wipro,

12 21192

What is a scope resolution operator?

HP, IBS,

5 15394

What do you mean by inheritance?

IBS,

1749

What is abstraction?

9 10854

What is polymorphism? Explain with an example.

48 121210

What is encapsulation?

TCS,

17 17593

What do you mean by binding of data and functions?

3 8948

What is function overloading and operator overloading?

4 15204

What is virtual class and friend class?

IBS, Intel, Wipro,

5 33757

What do you mean by inline function?

6 12968

What do you mean by public, private, protected and friendly?

CA,

3 9059

When is an object created and what is its lifetime?

IBM,

4 15727


Un-Answered Questions { C++ }

how to making game in c++ ?

2173


What is constant keyword in C++? Illustrate its various uses.

566


What does catch(…) mean?

606


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3353


Why is there no multiple inheritance?

560






What is a static member?

604


What is the difference between inheritance and polymorphism?

581


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1685


What is a pointer how and when is it used?

567


How do you declare a set in c++?

523


What are the types of pointer?

542


What is the protected keyword used for?

607


What is c++ w3school?

620


can we make game by using c

3409


Is facebook written in c++?

558