What function initalizes variables in a class:

a) Destructor

b) Constitutor

c) Constructor


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

what do you mean by volatile variable?

0 Answers  


Differentiate between declaration and definition.

0 Answers  


What is function overriding in c++?

0 Answers  


Differentiate between realloc() and free().

0 Answers  


Difference between shift left and shift right?

1 Answers   Symphony,






What are the types of pointer?

0 Answers  


Which is the best c++ compiler for beginners?

0 Answers  


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == 4 ) y-= 7; else y = 8; Enter a segment of code (without any IF statements) that does exectly the same thing using the switch structure.

1 Answers  


Explain data encapsulation?

0 Answers  


What data encapsulation is in c++?

0 Answers  


Is std :: string immutable?

0 Answers  


Explain how a pointer to function can be declared in C++?

0 Answers  


Categories