Classes and Objects/C++/Important points

  1. A class binds data and associated functions together.
  2. A class in C++ makes a user defined data type using which objects of this type can be created.
  3. While declaring a class data members.. member functions access specifiers and class tag name are given.
  4. The member functions of a class can either be defined within the class (inline) definition or outside the class definition.
  5. The public members of the class can be accessed outside the class directly by using object of this class type.
  6. A class binds data and associated functions together.
  7. A class in C++ makes a user defined data type using which objects of this type can be created.
  8. While declaring a class data members. member functions, access specifiers and class tag name are given.
  9. The member functions of a class can either be defined within the class (inline) definition or outside the class definition.
  10. The public members of the class can be accessed outside the class directly by using object of this class type.
  11. A class supports OOP features ENCAPSULATION by binding data and functionsassociated together.
  12. A class supports Data hiding by hiding the information from the outside world through private and protected members.

Leave a comment

Design a site like this with WordPress.com
Get started