Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the Difference between Overriding and overloading?

Answers were Sorted based on User's Feedback



What is the Difference between Overriding and overloading? ..

Answer / kishore reddy

Overloading------ Providing new implementation to a function with same name and different signatures is known as function overloading.

Overriding-------- Provide new implementation to a function with same name and same signatures is known as overriding

Is This Answer Correct ?    9 Yes 1 No

What is the Difference between Overriding and overloading? ..

Answer / vengat

Overloading is the same name and method with different
paramaeters and different sugnature


overriding--is the same signaturee and difference
functionality

Is This Answer Correct ?    6 Yes 1 No

What is the Difference between Overriding and overloading? ..

Answer / dev man

Overloading->
1) Same name, different parameter list or types of parameters.
2) Sub class method can overload a superclass method.
3) Method be different access specifier.
4) It doesn't need inheritance.
5) All method should be in same class.
6) data types can be different.
7) Return type can be different.

ex:
int add(int a, int b)
int add(float a , float b)
are overloaded methods


overriding->
1) Method should be public.
2) It needs inheritance and virtual keyword
3) It needs virtual keyword before it declaration.
4) Method must have same name with same parameter in
different class.
5) It requires non-static method.
6) Method should have same data type.

Is This Answer Correct ?    4 Yes 0 No

What is the Difference between Overriding and overloading? ..

Answer / anu

overloading-------having same function name but with
different signatures.
overriding--------function name and signatures must be same.

Is This Answer Correct ?    10 Yes 9 No

What is the Difference between Overriding and overloading? ..

Answer / kundan kumar

OverLoading : All the method will share the same name but
it differes based on the parameter, type of parameter and
number of parameter

OVERRIDING:-
it just in inheritance and the overriding
method must hold the same name and the same signatures .
the change maybe just in behavior .


The Dog class in the following example is the subclass and
the Animal class is the superclass. The Cat class overrides
eat() method inherited from Animal class.

public class Animal {

public void eat() {
System.out.println("Eat for Animal");
}
}

public class Dog extends Animal {

public void eat() {
System.out.println("Eat for Dog");
}
}

Is This Answer Correct ?    3 Yes 2 No

What is the Difference between Overriding and overloading? ..

Answer / syed

OVERLOADING: When we add a new method with the same namein
a same class/derived classbut with differentnumber/types of
parameters.

OVERRIDING: When we need to provide different
implementation in a child class than the one provided by
base class,we define the same method with same signatures
in child class.

Is This Answer Correct ?    1 Yes 0 No

What is the Difference between Overriding and overloading? ..

Answer / sudesh sangwan

overriding:in overriding is done in inheritance,we having same method name as in base class and having same signature.
it is resolved at run time.
overloading:
in overloading we have many method with same name but different parameter.
it is resolved at compile time.
eg:
int add(int a,int b)
int add(float a,float b)
int add (string a,string b)

Is This Answer Correct ?    1 Yes 0 No

What is the Difference between Overriding and overloading? ..

Answer / rajkumar

Function overloading: it is the same function name but
different parameters.


function overriding: it is the same function name and same
parameters.

Is This Answer Correct ?    1 Yes 0 No

What is the Difference between Overriding and overloading? ..

Answer / rajesh reddy.bijjam

Over Loading Methods may exists in the same class or parent
and child class also.

Overriding Methods should exists on the parent and child class.

Is This Answer Correct ?    1 Yes 0 No

What is the Difference between Overriding and overloading? ..

Answer / ravi

overloading ->same method name & different parameter
overriding->same method name & same parameter

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More VB.NET Interview Questions

Explain convert.tostring and i.tostring method?

0 Answers  


What is an assembly and its use?

0 Answers  


Explain option explicit?

0 Answers  


Can you please explain the difference between int and int32?

0 Answers  


What are the different types of Lock available in Visual Basic?

0 Answers   CGI,


What is the Difference between Web User Control and Web Custom Control?

6 Answers   Benchmark,


Explain internal keyword in .net framework?

0 Answers  


What is the use of console application?

0 Answers  


I Am Developing A project where I can send Message from One Computer to Another Computer With The Help Of LAN.Already I Have developed..It is working Fine With The Details Of ..TO,FROM,REF No,DATE,BODY...Now I Want To Add Attachments part in the same projects...How Can I Send Attachment File & How To Send It..I Am Working in VB.Net 2005 With out Any database. Can Any One Help me ??How To Write Code??Plz Send me a copy to my Mail also...I Dont Need Any Software Available in The Internet...Plz refer me The Code in VB.Net maloy.adhikari@in.com

0 Answers  


how to restore database using vb.net?

4 Answers   Eclat, PCS, Pepon, Restor, TCS,


What are the assembly entry points?

0 Answers  


What keyword is used to accept a variable number of parameter in a method?

0 Answers  


Categories