Compotiton in java

Composition in java mean to use object or instance  of one class  e.g class C as an field ( or as data member ) of other class e.g class A.

  • Class A and C must have has-a- relation .

0 comments:

Post a Comment

My Instagram