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 polymorphism give a real life example?

1038


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2622


What do you mean by abstraction?

1075


what is difference between class template and template class?

2662


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6681


What is abstract class in oops?

1026


What are the three parts of a simple empty class?

2056


what are the ways in which a constructors can be called?

2139


• What are the desirable attributes for memory managment?

2236


What is destructor example?

1054


Where You Can Use Interface in your Project

1893


Why is polymorphism needed?

1076


What is polymorphism and example?

1055


What is the significance of classes in oop?

1162


What is abstraction in oop?

1138