Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Need help with that lab ,java programming Need help with that lab ,java programming

Task 1 . Define an elegant classDesign an elegant class for pupils who are goodat arithmetic operations , such as additionsubtraction multiplication , and division . Thedata type of operands may be integer or float .For example , the add methods can be defined asfollowing . They are overloading methodspuPUblic int add intox into the float addsint xfloat y )public float add floatpublic float add floatNoat youint youreturn x ty !return ( float ( x + y )hellof properties , constructors and methods of Thiclass Pupil as shown in FigurePUTHITESTINGNEXTMust be home - kanFigure I Model for Pupil

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question