RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
No.Angle Kuniyoshi wrote:. . . the main class should inherit the 3 classes right?
Almost certainly not. PartTime should not extend FullTime; if you are to use inheritance, both should extend Employee. Employee should probably be abstract, and should have an abstract getEarnings() method.. . . are these correct. . . .
Thirty years ago, UML was the bees' knees, but experience in the meantime has shown that it doesn't add anything useful to the software development process. Unfortunately, if you have been given that UML, you will only get good marks if you follow it. I suggest you show this discussion to your teachers.Jesse Silverman wrote:. . . many dislike UML . . .
RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
It is a built‑in type in basic Java®.Jesse Silverman wrote:. . . BigDecimal is not a standard UML data type . . .
That will be the only way to get good marks. As I said before, please discuss this thread with your teachers.. . . your assignment was to implement the design as given . . . just implement what was given . . .
No, it isn't.Use spaces for indenting, not tabs. The methods should like like the above, if you use four spaces per level of indentation.Angle Kuniyoshi wrote:Can you check if this is ok. the format or placement of it?
Campbell wrote:Use spaces for indenting, not tabs. The methods should like like the above, if you use four spaces per level of indentation.
RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
Campbell Ritchie wrote:
No, it isn't.Angle Kuniyoshi wrote:Can you check if this is ok. the format or placement of it?
Only partially; your fields are only 1 space from the lefft, your methods 2 spaces, and your method bodies only 3 spacess. You need more space. Get a deccent text editor and set up its options to convert tab to 4 spaces automatically, and to supprot automatic indentation.Angle Kuniyoshi wrote:i fixed the indentions
Arfaid not. You have the extends right, but you still don't have any constructors. You still have a design which allows wage ≠ hours × hourlyRate.
are these classes ok? . . .