Object Concepts and Terminology-1

Object concepts 8 how to use the this keyword

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: the same name but different argument lists is called overloading. Example: public void printToConsole( ) public void printToConsole(String separator) public void printToConsole(String separator, boolean printLineAXer) Uses: Product p = new Product( ); p.printToConsole( ); Object Concepts #7: A[ributes/CharacterisDcs vs. Methods A[ributes define data, while methods define the funcDonality. •  A[ributes are defined by...
View Full Document

Ask a homework question - tutors are online