How can we access protected and private members of a class?
No Answer is Posted For this Question
Be the First to Post Answer
What are the storage qualifiers?
Why ctype h is used in c++?
How are virtual functions implemented in c++?
What is java and c++?
Where is atoi defined?
What do you mean by friend class & friend function in c++?
What is an undefined behavior and sequence points
What are the two shift operators and what are their functions?
What's the order in which the local objects are destructed?
What is problem with Runtime type identification?
class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list
What is difference between array and vector in c++?