Bookmark Topic Watch Topic
  • New Topic

PLEASE AN URGENT HELP...  RSS feed

 
patrick kobi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
Design and implement a class called Box that contains instance data that represents the height, width and depth of the box. Also include a boolean variable called full as instance data that represents if the box is full or not. Define the Box constructor to accept and initialize the height, width and depth of the box. Each newly created Box is empty (the constructor should initialize full to false). Include getter and setter methods for all instance data. Include a toString method that returns a one-line description of the box. Create a driver class called BoxTest, whose main method instantiates and updates several Box objects.
THANKS
 
abhishek pendkay
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Report post to moderator
I understand your class....but what I dont understand is what help you need??? do you want us to write the code for you???
 
patrick kobi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
it's right i want just the code of this exercise.... please... thanks
 
Ulf Dittmer
Rancher
Posts: 42972
73
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!