Discussion in 'Programming' started by Sarvodya Kumar, May 5, 2016.
Hello friends i want to know How can you add a method to a class already defined?
This is an extremely generic question - but you usually just hit "enter" right after any method ends and create an additional method.
If you want a more specific answer, you'd need to make your question more specific as well. Example code from your existing class would be ideal.
Hope this helps!
you can do it through method overloading... you can more than one prototype of function through use different numbers of parameters. It is possible in basic programming language like C++ and JAVA who support concept of Object
Separate names with a comma.