Home

By using protected, one can create class members that are private to their class but

A. that can not be inherited and accessed by a derived class

B. that can still be inherited and accessed by a derived class

C. that can be public

D. none of the above

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. In a class, only the member function can access data, which is not accessible to outside. This feature…
  2. If a friend function is declared inside a class it can access all data members of the class.
  3. One of the major disadvantage with late binding is
  4. The exception is processed using
  5. In C++, the exception handler is invoked with a-
  6. You can read input that consists of multiple lines of text using
  7. A member function can always access the data
  8. We cannot have the address of a constructor.
  9. What is the value of Friday in the following - enum days { Monday, Tuesday, Wednesday = -1, Thursday,…
  10. If class A is friend of class B and if class B is friend of class C, which of the following is…
  11. Operator overloading is
  12. Organizing data with methods that operate on the data and creating a new data type is called encapsulation.
  13. Objects get destroyed in the reverse order as they are created.
  14. Public data members can be accessed
  15. Which of the following is true about const member functions?
  16. The break statement causes an exit
  17. In case of nested class, enclosing class can directly access the private data member of nested class.
  18. A normal C++ operator that acts in a special way on newly defined data types is said to be
  19. Static data member occurs in only class scope.
  20. Scope resolution operator has the highest precedence.
  21. A constructor cannot be explicitly called.
  22. The binding that binds a function call at run time is called
  23. Inline functions_____________ call overload.
  24. Classes are useful because they
  25. In C++, the stream base class is
  26. _______ argument(s) are passed in case of binary overloaded operators.
  27. The following syntax is valid. void inline gram_ panchayat :: show_gram_ panchayat_info().
  28. In C++, the keyword auto can be used for
  29. Which of the following are good reasons to use an object oriented language?
  30. A copy constructor is used to copy an object member wise to another object of the same class.