Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello coders, I am looking for opinions on what code some of you use to extend base classes while using method overloading and method overriding. Feel free to use the following below with your example for me to follow along with. Thanks!

Add 6 to equal a total of 8
Add 2 to equal a total of 2
Subtract 9 to equal a total of -1
Multiply 10 to equal a total -10
Number of elements = 4, Total = -10, Average = -2.5

What I have tried:

I have tried not pulling my hair out in finding a way that is in its simplest form.
Posted
Updated 25-Jan-18 6:00am
Comments
David_Wimbley 25-Jan-18 11:54am    
What code have you tried? If you havent tried anything, how about attempting something and then providing your code for some feedback. Right now it just looks like you are asking someone to do your homework by saying "feel free to use the below as an example for me to follow along".
OriginalGriff 25-Jan-18 12:01pm    
It was a good try as "do my homework for me" pleas go! :laugh:

1 solution

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900