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...

Difference between overloading and Overriding. <Giving a
confusing example to test the concept.>
(also asked in PA Consultancy Group,iflex,Value
chain,IBM,CTS,Accenture, Tarang>

Answer Posted / priyanka patil

Function Overloading
class A
{
int show(int a,float b)
float show(int a,int b)//different prototype can valid but
as per parameters they called
}
Function overriding
class A
{
int show(int a)
};
class B : public A
{
int show(int a)//function prototype of base class fun n
derived class function must be same
}

Is This Answer Correct ?    26 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give an example of call be reference significance.

1034


Is special character in java?

1103


Can a abstract class be defined without any abstract methods?

1007


What is a parameter example?

984


In java how do we copy objects?

1059


What do you understand by access specifiers in Java?

1018


What is the maximum size of a string in java?

1104


What are exception handling keywords in java?

1040


how we can make a read-only class in java?

1002


What is a map in java?

996


What is incompatible types in java?

1044


What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?

1114


Can you add null to a list java?

1062


Write a program to reverse a number in java?

1099


What is the console in java?

1165