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

This note was uploaded on 03/08/2014 for the course CIS 304 taught by Professor Verbrugge during the Spring '08 term at Cal Poly Pomona.

Ask a homework question - tutors are online