 In the present example, the set of circles is a subset of the set of ellipses; circles can be defined as ellipses whose major and minor axes are the same length.Thus, code written in an object oriented language that models shapes will frequently choose to make a subclass of , i.e.inheriting from it.