Answer Posted / pinki
Overloading methods
1.They appear in the same class or a subclass
2.They have the same name but, have different parameter
lists, and can have different return types.
An example of an overloaded method is print() in the
java.io.PrintStream class
Overriding methods
It allows a subclass to re-define a method it inherits from
it's superclass
overriding methods:
1. It appears in subclasses
2. They have the same name as a superclass method
3. They have the same parameter list as a superclass method
4. They have the same return type as as a superclass method
5. They have the access modifier for the overriding method
may not be more restrictive than the access modifier of the
superclass method
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is boxing and unboxing? Does it occure automaatically or you need to write code to box and unbox?
how to set the startup position of the form?
how to change the title of my window?
Why the config file might not be writable
Explain pipelining? : .NET Architecture
what is the method while we are using adapter and dataset ?
how to make and display a form without title bar?
What is IL code, CLR, CTS, GAC & GC?
Explain about appdomains?
What is the difference between an application and a program?
Explain .net mobile selectionlist control? : Microsoft dot net mobile
Explain hard disk and what is its purpose? : Dot net architecture
Explain about the base class library provided by microsoft.net?
What is .net mobile lists. Explain with an example? : Microsoft dot net mobile
What is an asssembly qualified name? Is it a filename? How is it different?