What is function overriding in c++?
No Answer is Posted For this Question
Be the First to Post Answer
What is code reusability in c++?
What is general format for a prototype?
What is the latest c++ version?
Explain how to initialize a const member data.
What is capacity in vector in c++?
How to declare an array of pointers to integer?
What is buffer and example?
Can you pass an array to a function in c++?
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
How does class accomplish data hiding in c++?
Can member data be public?
What are the 2 main types of data structures?