A is correct because Store is a base class for FoodStore.
C is correct because Object is a base class for FoodStore. The Object class is always the base class for every object. Store implicitly extends Object, Store is extended by FoodStore, and so
FoodStore extends Object.
D is correct because Store implicitly extends Object.
B is incorrect because a FoodStore object cannot be initialized with a more general class.
|