Which one of the following describes characteristics of
"protected" inheritance?
a) The base class has access only to the public or protected
members of the derived class.
b) The derived class has non-public, inheritable, access to
all but the private members of the base class.
c) The derived class has access to all members of the base
class.
d) The private members of the base class are visible within
the derived class.
e) Public members of the derived class are privately
accessible from the base class.
Answers were Sorted based on User's Feedback
Is string an object in c++?
What is realloc() and free()? What is difference between them?
Write a code/algo to find the frequency of each element in an array?
Search for: what is pair in c++?
What is the purpose of the noexcept keyword?
You have to take 2 arrays of length 10. Input the values of array 1 from the user. Then copy the values of array 1 to array 2 in ascending order For example if user enters 9, 5, 6, 8, 1, 0, 2, 7, 4, 3 then copy the smallest element i.e. 0 first followed by 1, 2 and so
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
Name the operators that cannot be overloaded in C++?
Out of fgets() and gets() which function is safe to use and why?
What are the difference between reference variables and pointers in C++?
Differentiate between declaration and definition in C++?
What is virtual base class?