Define the following
1. Type& subtype
2. Class & subclass
Answers
Answered by
1
1. A subtype of a given type is a combination of the type, a constraint on values of the type, and certain attributes specific to the subtype. The given type is called the type of the subtype. ... The set of values of a subtype consists of the values of its type that satisfy its constraint and any exclusion of the null value.
2. Definitions: A class that is derived from another class is called a subclass (also a derived class, extended class, or child class). The class from which the subclass is derived is called a superclass (also a base class or a parent class).
Hope it helps...
ʕ •ᴥ•ʔ
Similar questions