propellerads adcombo
Dismiss Notice
Welcome to Our Community
Wanting to join the rest of our members? Feel free to sign up today.

How can you add a method to a class already defined?

Discussion in 'Programming and Scripts' started by Sarvodya Kumar, May 5, 2016.

  1. Sarvodya Kumar

    Sarvodya Kumar Affiliate affiliate

    30
    0
    0
    Hello friends i want to know How can you add a method to a class already defined?
     
  2. utdream

    utdream Service Manager Service Manager affiliate

    60
    13
    8
    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!
     
    2 people like this.
  3. Ajax Hill

    Ajax Hill Affiliate affiliate

    17
    2
    0
    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
     

Featured Resources (View All)

adsxposed