member functions

  • Cursor this in C ++

    Cursor this in C ++

    each object in c ++ has access to its own location through an important pointer called this pointer. the pointer this in c ++ is a hidden parameter to all member functions. so inside a member function, this pointer can refer to the calling object.
  • Class member functions in C ++

    Class member functions in C ++

    a member function of a class is a function that has its definition or prototype inside the class definition like any other variable. it works on any object of the class that is a member, and has access to all members of a class for that object.