JL.
JL.

Reputation: 81342

What is the official name of a class that must be inherited from to instantiate?

In OOP terms what is the name of a class that is always a parent, and the class cannot be used on its own, it can only be used if a class inherits from it.

I don't need code samples, just the technical OOP term for this class, thanks!

Upvotes: 2

Views: 204

Answers (4)

blwy10
blwy10

Reputation: 4892

It can also be called a pure virtual class if it's C++

Upvotes: 1

James
James

Reputation: 82136

A class thats always a parent...not quite sure what you mean by this. I would take a stab and assume you are refering to the Base Class. For a class that can only be inherited from you are thinking of an Abstract class.

Upvotes: 2

swegi
swegi

Reputation: 4112

I call such a class an abstract base class.

Upvotes: 3

rslite
rslite

Reputation: 84773

Abstract class.

Upvotes: 13

Related Questions