Subtyping

Subtyping Definition

Subtyping is the process of defining a subtype — a more specific group of objects, such as data points, entities, or physical objects — within a broader category (called the “supertype”). Objects in a subtype can generally be used in place of the supertype without breaking expected behavior. The term is usually associated with object-oriented programming but has applications in various disciplines.

How Subtyping Works

Subtyping establishes a relation between two categories of objects. It defines a subtype as a more specific version of the supertype category. A subtype inherits characteristics defined by the supertype. It can add new characteristics but stays compatible with the supertype’s expected behavior.

Subtyping Use Cases

Subtyping Pros

Subtyping Cons

Read More

FAQ

Subtyping allows for security rules to be implemented on a general and a more granular level. Security rules applied to a supertype also apply to all subtypes, and separate rules can be made for different subtypes.

Not on its own. Subtyping is a method for organizing objects in a category. It can cause security risks if the security policies for the subtype and supertype aren’t properly defined or clash with each other.

Yes, in many systems, an object can belong to several specific categories at the same time. For example, a user account can be both an “administrator” subtype and an “editor” subtype, with all the features of both subtypes.

×

SPRING SPECIAL OFFER

OFF

For a limited time only!

1
2
0
5
5
4
4
8
DaysHoursMinsSec

undefined45-Day Money-Back Guarantee