Containment

Containment or composition is the process of adding another class as a member of a class. For example, a Person class can have a field of type Name. The program below shows an example of a class using containment. using System; namespace ContainmentDemo { Read more