|
-
March 30th, 2010, 06:24 PM
#1
Issues with Homework
Struggling in my programming class and have barely been able to get by till this point.
Assignment from the book is: Create a class named Square that contains fields for area and the length of a side and whose constructor requires a parameter for the length of one side of a Square. The constructor assigns its parameter to the length of the Square's side field and calls a private method that computes the area field. Also include read-only properties to get a Square's side area. Create a class named DemoSquares that instantiates an array of 10 Squares objects with sides that have values of 1 through 10. Display the values for each Square.
Completely stumped as to what I should do on this or where to start. Keep trying to reread the chapter and the one before it and am to the point of complete frustration. Any code or assistance would be greatly appreciated. Also bear in mind Ive never programmed before this so I dont know much lingo or anything like that.
Ziggy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|