With aggregation we create a new class, which is composed of existing classes. With inheritance we create a new class, which is based on existing class, with some modifications . subclasses. In the Java language, classes can be derived( רזגנ (from other classes, thereby inheriting fields and methods from those classes.
Is there inheritance in aggregation?
With aggregation we create a new class, which is composed of existing classes. With inheritance we create a new class, which is based on existing class, with some modifications . subclasses. In the Java language, classes can be derived( רזגנ (from other classes, thereby inheriting fields and methods from those classes.