What are the classes in c++?
No Answer is Posted For this Question
Be the First to Post Answer
Define a nested class. Explain how it can be useful.
class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects.
Why are pointers used?
What is compilation?
What is static in c++?
What happens if a pointer is deleted twice?
Name the debugging methods that are used to solve problems?
Can we overload operator in c++?
Differentiate between a deep copy and a shallow copy?
How would you use the functions randomize() and random()?
What is token c++?
What is the extraction operator and what does it do?