Explain virtual class and friend class.
No Answer is Posted For this Question
Be the First to Post Answer
what is a class? Explain with an example.
Difference between shift left and shift right?
Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---
class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor.
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,
Write about all the implicit member functions of a class?
What is a conversion constructor?
What is a unnitialised pointer?
What is istream c++?
what are Operators and explain with an example?
write a function signature with various number of parameters.
What are the rules about using an underscore in a c++ identifier?