answersLogoWhite

0


Best Answer

Yes. Inheritance and polymorphism are two different things.

Inheritance is when the attributes and methods of a class are inherited by a deriving class that creates a more specialized type.

Polymorphism is when two methods exist with the same name, differing only in argument types, or in class type. The former type, argument types, is an example of ad-hoc polymorphism that does not even require a class.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you have inheritance without polymorphism?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is Object Oriented Programming without the principle of Polymorphism?

Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.


What is a relationship in following a-polymorphism b-inheritance c-overloading d-none of these options?

Inheritance.


3 pillars of object oriented programming?

abstraction, inheritance, encapsulation, and polymorphism.


What are the benefits and application of OOP?

Encapsulation, inheritance, polymorphism and abstraction.


What are the characteristics of OOPS?

Data Encapsulation, Abstraction, Inheritance, Polymorphism


Examples for oops concepts?

polymorphism,inheritance,encapsulation,objects,classes


How is run time polymorphism accomplished?

Through inheritance and virtual functions.


What are the various elements of Object oriented programming?

Encapsulation, data hiding, inheritance and polymorphism.


What are the basic concept of object oriented programming language?

Inheritance Encapsulation Polymorphism Abstraction


What is oops.explain briefly the elements of oops?

if any system supports for abstraction,encapsulation,inheritance and polymorphism.


What are the features of object oriented program?

The features of object oriented programming are Abstraction, Encapsulation, Polymorphism & Inheritance


Basic concepts of OOP?

The four main pillars of all OOP languages are encapsulation, inheritance, polymorphism and abstraction.