Results 1 to 5 of 5
Thread: please help with exam problems
- 04-21-2008, 03:52 AM #1
Member
- Join Date
- Nov 2007
- Posts
- 11
- Rep Power
- 0
please help with exam problems
please help!!!
i have a exam tomorrow.
5) Draw an inheritance hierarchy to represent a shoe object. The base class should have derived classes of Dress Shoes, Tennis Shoes and Boots.
6) Implement the base class in the shoe hierarchy in number 5 above.
public class Shoe
{ private String color;
private String designer;
private double size;
7) Derive a class named Dress Shoes from the base class created in number 6 above
public class DressShoe extends Shoe
{
private String type; //valid types include pumps, heels and flats
8) Derive a class named Tennis Shoes from the base class created in number 6 above.
public class TennisShoe extends Shoe
{
private String soleType;
private String canvasType;
9) Derive a class named Boots from the base class created in number 9 above.
public class Boot extends Shoe
{
private String heelType; //valid types include pumps, heels and flats
10) Override the clone method inherited in the Dress Shoes class created in number 7 above.
11) Override the clone method inherited in the Tennis Shoes class created in number 8 above.
12) Override the clone method inherited in the Boots class created in number 9 above.
- 04-21-2008, 07:10 AM #2
If you have listened to your instructor and made some experiments on his examples and a little effort of exploration.... im sure you can do it......
What have you done so far?
regards,
sukatoa
- 04-21-2008, 07:14 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 04-21-2008, 06:48 PM #4
This is your exam- not ours. YOU need to do the work if you expect to be taken seriously. End of story.
Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? Vote now!
Got a little Capt'n in you? (drink responsibly)
- 04-21-2008, 08:47 PM #5
Member
- Join Date
- Nov 2007
- Posts
- 11
- Rep Power
- 0
hi all
these were not my exam problems, these are review problems and my professor finished 4 chepters in 2 week. i was studing and couldn't solve these problems.My other classmates were not able to solve these problems and it was weekend, i didn,t know who to ask. but thanks a lot i already had exam this morning and i did well.
oh and problems i asked u 2-3 of them were in the exam and professor explained us what she is asking. so it wasn't that hard.
Similar Threads
-
Discount Java Certification Exam Vouchers
By mbrown36 in forum Reviews / AdvertisingReplies: 17Last Post: 12-15-2009, 06:10 PM -
SCBCD 5.0 Mock Exam Questions
By kks_krishna in forum Reviews / AdvertisingReplies: 0Last Post: 04-02-2008, 08:26 AM -
GUI problems.
By saytri in forum New To JavaReplies: 1Last Post: 12-16-2007, 10:27 PM -
problems with JPA
By Ed in forum New To JavaReplies: 2Last Post: 07-04-2007, 05:34 AM -
Java cert exam samples
By orchid in forum New To JavaReplies: 5Last Post: 06-04-2007, 09:33 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks