Home

The members of a class can be made private by

A. declaring them private

B. by default they are private

C. by declaring them in the beginning of the program immediately after main()

D. they are always public

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

You can do it
  1. iostream is inheried from istream, ostream and ios class.
  2. Class members are _______________ by default
  3. A member function can always access the data
  4. In a class, only the member function can access data, which is not accessible to outside. This feature…
  5. _____________ operator must have one class object
  6. Pick out the most appropriate statement from the following
  7. A copy constructor is used to copy an object member wise to another object of the same class.
  8. Protected data members can be accessed
  9. Member function cannot be called from within a constructor.
  10. A base class is inherited by
  11. Operator overloading is
  12. The member of a structure can be directly accessed by
  13. If class A is friend of class B and if class B is friend of class C, which of the following is…
  14. In C++, the stream base class is
  15. In C++, an identifier must be initialized using constant expression.
  16. new operator is used
  17. The members of a class by default are private.
  18. :: is known as
  19. What is the value of Friday in the following - enum days { Monday, Tuesday, Wednesday = -1, Thursday,…
  20. In C++, identifiers have to be declared at the beginning of the blocks.
  21. Which of the following are good reasons to use an object oriented language?
  22. Objects get destroyed in the reverse order as they are created.
  23. this' is an implicit pointer.
  24. Private members of a structure can be accessed directly from the outside of the structure.
  25. We cannot have the address of a constructor.
  26. A function that is called automatically when an object is destroyed is known as
  27. Data objects can be initialized when allocating memory using 'new'.
  28. One of the important features of an abstract class is
  29. ios containes a pointer to streambuf.
  30. Overloaded functions