What are inline functions? What is the syntax for defining an inline function?
Why do we use classes in c++?
Does c++ support multilevel and multiple inheritances?
Why is polymorphism useful?
What is pointer to member?
Types of storage and scope of each type
What is java and c++?
What are multiple inheritances (virtual inheritance)?
class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable
Write a String class which has: 1) default constructor 2) copy constructor 3) destructor 4) equality operator similar to strcmp 5) constructor which takes a character array parameter 6) stream << operator
2 Answers HCL, Lehman Brothers, Zoomerang,
What are the extraction and insertion operators in c++? Explain with examples.
What is the main function c++?
They will ask u question about single linked list?. Write Code for to insert delete node.