View RSS Feed

Recent Blogs Posts

  1. HAS-A relationship

    by , 04-26-2012 at 06:32 PM
    Such relationships are usage based. It shows whether a class consist of HAS-A, certain thing. Code duplication and bugs are reduced by this relationship.

    For example:
    Java Code:
    public class Vehicle{}
    public class Speed{}
    public class Van extends Vehicle{
    	private Speed sp;
    Class Van HAS-A speed is shown. Speedís separate class doesnít require putting the complete code which has relation with speed, inside the Van class, that makes ...