Which of the following demonstrates the use of aggregation in Java?
class Engine {
}
class Car {
private Engine engine;
}
Which of the following demonstrates the use of aggregation in Java?
class Engine {
}
class Car {
private Engine engine;
}