Computer Science, asked by drthdate4190, 2 months ago

Difference between method prototype and method signature

Answers

Answered by ɪᴛᴢᴛʀᴀɢɪᴄɢɪʀʟ
8

Technically, in Java, a method signature consists only of the name of the method and the parameter types and their order. The modifiers, return type and throws clause are not part of the signature

hope it helped :)

Answered by Anonymous
85

\large{\underbrace{\sf{\purple{Required\:Answer:}}}}

What is method prototype?

Method Prototype is a designed pattern that allows cloning objects, without combining to their specific classes. Such objects can create full copies, As objects of the same classes can access each other's private field.

What is method signature?

A method signature is a combination of method name and parameter list . It has the capability to write methods that have the same name but obtain different parameters.

A method signature consists only of the name of the method and the parameter types and their order. The modifiers, return type and throws clause are not part of the signature

Function prototypes are a C concept that is not relevant to Java.  A function prototype is basically a definition for a function. It is structured in the same way that a normal function is structured, except instead of containing code, the prototype ends in a semicolon.

Brainliest plz ♥

______________________________________

Similar questions