Chemistry homework help

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

%d bloggers like this: