Files
CSCI-1200/lectures/05_classes_II/README.md
2023-09-14 13:28:17 -04:00

1.0 KiB
Raw Blame History

Lecture 5 --- Classes II: Sort, Non-member Operators

  • Classes in C++;
  • Non-member operators

5.1 C++ Classes

  • Nuances to remember

    • Within class scope (within the code of a member function) member variables and member functions of that class may be accessed without providing the name of the class object.
    • Within a member function, when an object of the same class type has been passed as an argument, direct access to the private member variables of that object is allowed (using the . notation).

5.2 Exercises