previous | index | next

Method Calling Syntax

Most object-oriented languages (including C++) invoke methods on objects using the syntax:
  object.method(args);
So the interactions in the diagram at right would be coded:
  shirt1.getSleeve();
  list.add(shirt1);
  list.display();
     

previous | index | next