Hello I'm new to the forums and want to try this out to expand my knowledge in programming!
I have an interface and three classes
How do you link the three classes to this interface like a hierarchy.
Thanks for your time.
Printable View
Hello I'm new to the forums and want to try this out to expand my knowledge in programming!
I have an interface and three classes
How do you link the three classes to this interface like a hierarchy.
Thanks for your time.
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.
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,
Jos
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
#Mochie: Please don't hijack some else's thread; start your own thread.
kind regards,
Jos