Aquarius_Girl
Aquarius_Girl

Reputation: 22946

What are the types of inheritances?

What are the types of inheritances?

  1. Multiple
  2. Single
  3. Multilevel
  4. Hierarchical
  5. Hybrid

Is that all? Have I missed something from the list?

EDIT 1

  1. Diamond

EDIT 2

I request all of you to put your comments in answers. I won't be able to select all, but I''l definitely upvote them.

Upvotes: 1

Views: 73

Answers (1)

Luchian Grigore
Luchian Grigore

Reputation: 258648

In general OOP terms, I'm not sure that these translate, but you can have:

  • virtual inheritance (might be a pure C++ thing)
  • public/protected/private inheritance (these would make sense to be more general terms, and not only apply to C++)

Upvotes: 1

Related Questions