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
Define domestic architecture artifacts? : Dot net architecture
What are different types that a variable can be defined and their scopes ?
Differnce between managed code and unmanaged code ?
Explain cache memory? : Dot net architecture
Explain cache memory? : .NET Architecture
What is the use of TPL DATAFLOW?
I want to create a project like google maps how can we do that with atlas?
Does application frame need host?
What is IL code, CLR, CTS, GAC & GC?
What is the purpose of Accordian in jquery? Where it can be used?
What is the cli? Is it the same as the clr?
Explain about the base class library provided by microsoft.net?
What is the purpose of hard disk? : Dot net architecture
Explain the Lapsed Listener problem in .net
What is password attribute of the textbox control of .net mobile? : Microsoft dot net mobile