Home

Private data members can be accessed

A. Only from the base class itself

B. Both from the base class and form its derived classes

C. From the class which is a friend of the base class

D. None of the above is correct

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

You can do it
  1. By using protected, one can create class members that are private to their class but
  2. When you overload an arithmetic assignment operator, the result
  3. In a class, only the member function can access data, which is not accessible to outside. This feature…
  4. The member of a structure can be accessed through a pointer by
  5. Private members of a structure can be accessed directly from the outside of the structure.
  6. A normal C++ operator that acts in a special way on newly defined data types is said to be
  7. When one object initializes another object the following function is invoked
  8. Objects get destroyed in the reverse order as they are created.
  9. Dynamic memory can be allocated by the following declaration
  10. Public data members can be accessed
  11. In a for loop with a multi-statement loop body, semicolons should appear following
  12. A function that is called automatically when an object is destroyed is known as
  13. A member function can always access the data
  14. When accessing a structure member, the identifier to the left of the dot operator is the name of
  15. In C++, identifiers have to be declared at the beginning of the blocks.
  16. An object is an allocated space in memory.
  17. In C++, an identifier must be initialized using constant expression.
  18. The getch() library function
  19. A destructor can have arguments like constructor.
  20. In C++, the exception handler is invoked with a-
  21. The declaration int **var1; shows that
  22. We cannot have the address of a constructor.
  23. A pure virtual function is a virtual function that has
  24. The string table in C++ holds the
  25. this' is an implicit pointer.
  26. One of the important features of an abstract class is
  27. The scope resolution operator is -
  28. "[]" Operator is a unary operator.
  29. The && and || operators
  30. In C++, the keyword auto can be used for