This lecture is about association, composition, aggregation, coupling and cohesion. In Object-oriented programming, the relationship between two objects in which one object is related to other to use functionality and service provided by that object is known as the association. Class Association is implemented in terms of inheritance. object Association is the interaction of stand-alone objects of one class with other objects of anther class. In simple association, there is no intrinsic relationship between objects. An object may be composed of other smaller objects, the relationship between the “part” objects and the “whole” object is known as Composition while in case of aggregation there is a container and contained object relationship. The composition is a stronger relationship while aggregation is a weaker relationship. Coupling is the degree of interdependence between software modules and we strive for loose coupling. Cohesion is that a method performs a single well-defined task and a class represents a single entity. in good class design, we strive for loose coupling and high cohesion.
OOP with Atif Ishaq
Association with Atif Ishaq
Composition With Atif Ishaq
Coupling and Cohesion
Composition and Aggregation
OOP in Urdu