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 ways of Polymorphism?

Answer Posted / zeeshan

Polymorphism can be achieved by two ways:
1.Overloading 2.Overriding
1.Overloading: Overloading means methods have same name but
different arguments it can be achieved at Compile Time.
1.Overriding: Overloading means when we make method virtual
in base class and we also want that it also used in child
then we use override keyword for that method and and it can
be achieved at Run Time.

Is This Answer Correct ?    21 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is encapsulation selenium?

1074


Is this job good for future? can do this job post grduate student?

2219


Which language is pure oop?

1065


What is overloading in oop?

1045


What is inheritance and how many types of inheritance?

1151


What causes polymorphism?

1184


What is the point of polymorphism?

1091


Can bst contain duplicates?

1242


Why do we use oop?

1165


write a C++ program for booking using constructor and destructor.

2585


What are the benefits of polymorphism?

1359


What is polymorphism give a real life example?

1077


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

2198


Can a varargs method be overloaded?

1155


What do you mean by variable?

1092