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
Explain the difference between primary & secondary storage device? : Dot net architecture
What is Object Caching in Visual Studio 2010?
Explain the difference between l1 and l2 cache? : Dot net architecture
how to change the application name?
Explain the race around condition? How can it be overcome? : Dot net architecture
Explain difference between machine config vs. Web config : Dot net architecture
How do we do authentications using atlas?
What is the difference between metadata and menifest ?
State and explain about microsoft.net?
What is an asssembly qualified name? Is it a filename? How is it different?
What is the problem with .net generics?
Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure on hardware that converts the ascii value to binary? : .NET Architecture
What are relation objects in dataset?
What is difference between .net and visual studio?
how we can fire event in databound column in datagrid without using button?