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's new in the .net 2.0 class library?
What is an interrupt? : Dot net architecture
Explain about generation?
Can you Explain
Explain is development of a mobile web application with asp.net is very easy? : Microsoft dot net mobile
What is the use of CLR in .NET?
Explain cache? : Dot net architecture
I want to create a project like google maps how can we do that with atlas?
Tell me .net mobile emulators? : Microsoft dot net mobile
how to add list of items in a web application and win application?
Define domestic architecture artifacts? : Dot net architecture
What is a service class?
4. Wcf- what Asych and Sych call and how that works
if there are two application 1 and 2 having a variable x in both app if client1 changes value of x in 1 app client 2 want reads the value of x from 2 app what resultant value will he get
What does this do? Gacutil /l | find /i "corillian"