Create two classes, Vehicle and Engine, with no-arg constructors. Vehicle's constructor should print "I'm a Vehicle!" to the standard output, and Engine's constructor should print "I'm an Engine!". Create a new class PickupTruck and declare it a subclass of Vehicle. Create an instance variable in PickupTruck that is of type Engine and initialize it (with an initializer) to a new instance of class Engine. Class PickupTruck should have no constructors or methods, just the instance variable. In the main() method of a class named Problem2, create an object of class PickupTruck. Run the Problem2 application and observe the results.
im so confused.. can anyone give me the right answer for this?? t