Results 1 to 2 of 2
  1. #1
    kaos3rd is offline Member
    Join Date
    Apr 2011
    Posts
    1
    Rep Power
    0

    Default how do i do this?

    Write the class declaration for class Square that has a private instance variable side of type double and a no-argument constructor that sets the side to 1.0 by calling a method named setSide

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,800
    Rep Power
    7

    Default

    First thing you do is pay attention in class. Everything you need to complete this assignment was covered by your teacher. Read your notes. Read your textbook. Read online tutorials. Once you have done that attempt to write the code. If/When you have problems come back here, post your code and ask a specific question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •