Results 1 to 5 of 5
Thread: Interfaces
- 11-25-2011, 09:58 PM #1
Member
- Join Date
- Nov 2011
- Posts
- 1
- Rep Power
- 0
-
Re: Interfaces
I can't speak for everyone, but I don't have a clue as to what you're asking based on what you've posted. If you don't get a decent and complete answer soon, consider clicking on the link in my signature links below on how to ask smart question. It will give suggestions on what you need to tell us so your question is actually answerable. Also consider posting the exact wording of your assignment.
- 11-27-2011, 08:39 AM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: Interfaces
I guess that the three classes have to implement the single interface; if a class C2 extends a class C1 and class C1 implements your interface then class C2 also implements your interface. I suggest you use pen and paper and doodle all possible configurations for your three classes. If they form a hierarchy by themselves only the root of that hierarchy needs to implement the interface. It they form a 'forest' or 'heterarchy' the roots have to implement the interface. I doubt I fully understand your question ...
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 11-27-2011, 10:13 AM #4
Member
- Join Date
- Nov 2011
- Posts
- 1
- Rep Power
- 0
Re: Interfaces
I need some help,,how can i make this payroll in simplst syntax
.Create a class named Pay that includes 5 double variables that hold hours worked, rate of pay per hour, withholding rate, gross pay, and net pay. Create three overloaded computeNetPay() methods. When computeNetPay() receives values for hours, pay rate, and withholding rate, it computes the gross pay and reduces it by the appropriate withholding amount to produce the net pay. When computeNetPay() receives two arguments, they represent the hours and pay rate, and the withholding rate us assumed to be 10%. When computeNetPay() receives one argument, it represents the number of hours worked, the withholding rate is assumed to be 10%, and the hourly rate is assumed to be 5.65. Name the program as Pay.java
- 11-27-2011, 10:35 AM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Interfaces
By dalu in forum New To JavaReplies: 4Last Post: 04-26-2011, 12:22 PM -
Interfaces (not GUI)
By guilty in forum Advanced JavaReplies: 1Last Post: 11-05-2010, 07:16 PM -
interfaces..
By sireesha in forum New To JavaReplies: 5Last Post: 01-16-2008, 05:52 PM -
Interfaces
By Kavana Krishnappa in forum New To JavaReplies: 7Last Post: 12-11-2007, 04:28 PM -
Interfaces
By imran_khan in forum New To JavaReplies: 5Last Post: 07-30-2007, 08:11 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks