OOPortal
RationalDB Database Design
prev prev
  Course navigation
    Unary and binary operator overloading
Nonstatic member functions
Data members can be declared with the storage class modifier static. A data member that is declared static is shared by all variables of that class and is stored uniquely in one place. Since a static member is independent of any particular instance, it can be accessed in the form
class name :: identifier 

Nonstatic members are created for each instance of the class. The assignment, function call, subscripting, and class pointer operators can be overloaded only by nonstatic member functions.
  Course navigation