In the question below I not getting the bold line. Does that line mean create an array objects of class compartment? Because as per my knowledge Java doesn't have concept of pointers.
Create an abstract class compartment to represent a rail coach. Provide an abstract function notice in the class. Derive FirstClass, General, Ladies and Luggage classes from the Compartment class. Override notice function in each of them. Create a class TestCompartment. Write main function to do the following: Declare an array of compartment pointers of size 10.