Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

$10 via Paypal to whoever can code this for me !! :)

 
Doug Muzza
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stuck on a task Will Paypal 10 bucks/pounds to first one to do this for me

Thanks in advance

Implement a subclass Square that extends the Rectangle class. In the constructor, accept the the x- and y- coordinates of the centre and the siude length of the square. call the setLocation and setSize methods of the rectangle class (look these up !!) Also supply a method getArea that returns the area of the square. Write a test class that makes use of the square class.


Cheers
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you're having trouble with that assignment, quit the course and get your money back
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic