What is encapsulation in C++? Give an example.
No Answer is Posted For this Question
Be the First to Post Answer
Describe the syntax of single inheritance in C++?
What is the role of static keyword for a class member variable?
Is there any difference between int [] a and int a [] in c++?
Can we define a constructor as virtual in c++?
What are the types of STL containers?
What do you mean by Stack unwinding?
How do you clear a set in c++?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What is size of string in c++?
check whether a no is prime or not.
Do we have private destructors?
How can we read/write Structures from/to data files?