Reading notes - mode programming

xiaoxiao2021-03-06  42

The main content of the mode programming is: how to organize classes, class relations programming

Two types of relationships:

Inheritance relationship

2. Synthetic relationship: Polymerization aggregation, combined Composition, the two differences in HAS-A and Contains-A, that is, one owned, a fully included.

The frequency of use of synthetic relationship is high than inheritance.

转载请注明原文地址:https://www.9cbs.com/read-82619.html

New Post(0)