Day: September 4, 2017

Prototype Design Pattern in Visual Basic .NET

Prototype Design Pattern comes under the Creational Pattern. This pattern also is used to create object. In this pattern you create a clone of an existing object with out creating new object Why do you clone objects? Creating heavy objects consume memory It takes time to create new object if it consumes lots of resources […]

Read more

Composition in OOP with Visual Basic .NET

To identify the composition relationship between two classes you should have association and aggregation between those two classes In the following example Class B is part of Class A and also this has the association. So now you have association and aggregation Class A is the whole Class B is the part Lets say, we […]

Read more

Aggregation in OOP with Visual Basic .NET

Aggregation is a collection or formation number of things to cluster. In Object Oriented Programming , Aggregation is whole part relationship (You should have the association between classes) Aggregation is a subset of the association In the following example Class B is part of Class A and also this has the association We can name […]

Read more

Association in OOP with Visual Basic .NET

Association shows the relationship between classes There are two types of Associations 1 Unary Association 2 Binary Association 1. Unary Association Class A does not know about ClassB Class B knows about ClassA To indicate the Unary Association single head arrow is used as shown in the below figure Now lets look at the following […]

Read more