Method prototype v signature

Discussion in 'Java' started by Robert Mark Bram, Oct 20, 2003.

  1. Hi all!

    I know that a method signature is the method's name and list of parameter
    types, but what is a method's prototype?

    Is it the signature and return type or..
    is the signature, return type and all modifiers?

    Thanks for any advice!

    Rob
    :)
     
    Robert Mark Bram, Oct 20, 2003
    #1
    1. Advertisements

  2. Robert Mark Bram

    Erwin Moller Guest

    Rob,

    What do you mean with 'all modifiers'?
     
    Erwin Moller, Oct 20, 2003
    #2
    1. Advertisements

  3. Hi Erwin,
    public private protected synchronized static etc - anything we put before
    the method name..


    Rob
    :)
     
    Robert Mark Bram, Oct 21, 2003
    #3
  4. I don't normally see that terminology applied to Java. Function
    prototypes are a C concept that is not relevant to Java.


    John Bollinger
     
    John C. Bollinger, Oct 21, 2003
    #4
  5. Robert Mark Bram

    dharna veragi

    Joined:
    Jul 12, 2017
    Messages:
    1
    Likes Received:
    0
    What is method prototype?
    Give answers according to 12th class
     
    dharna veragi, Jul 12, 2017
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.