Lesson 8.2- Representing Behavior, Method Signatures handout

1 public class circle private double

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:         -.     "-               this.aRectangle = aRectangle1; } 1         { 4.    '        '    '                         * +    $"" %&'"    $"" public class TestDriveRectangle{   "*   *  .      public static void main(String args{ Rectangle aRectangle = new Rectangle(); double area, length; 1        : // setting the length and width of aRectangle nameOfObject.nameOfMethod( list_of_arguments );  aRectangle.setLength(1); // 1 is the argument ( aRectangle.setWidth(2); // 2 is the argument  NameOfObject  "   :  NameOfMethod   // getting the area and length of aRectangle.  list_of_arguments...
View Full Document

Ask a homework question - tutors are online