Tuesday, July 13, 2010

What is Polymorphism in c++ programming language

What is Polymorphism in c++ programming language. Polymorphism in OOPs.

Polymorphism is a simple concept that you understand now, as so often in life. You are a person, that person is a base rate and are a more accurate representation of that type. There are many people who inherit this kind, which you are a concrete application of this type: it has its own beliefs, attributes and qualities that go beyond just one person in general. For example, we all have a blood type, shoe size, arm length, and many other properties. But each of us add our own implementation of the MMI.

You drive a car, which has properties such as wheel size, engine size, the size of the gas tank, and other properties. The car that leads to a concrete application of the interface of the car. It has additional features such as sliding doors, logo type, number of slot CD changer, moon roof lever location, or other distinct properties that are specific to the make and model of car. In addition, the car can have certain behaviors such as opening / closing the door, trunk open, turn the wheel, and other behaviors that would be specific to a car.

In OO programming, using the example of the car, the car would be the base class, and each automaker would have its own implementation. For example, Honda has technology V-Tec, which is in its own implementation. Used Volvo diesel engines, TDI technology is. More importantly, you can add an additional level of detail between the car and the make / model of implementation, such as cars, trucks, SUV's or supertypes to provide the most relevant information.

No comments:

Post a Comment

Ads