Question: Java!! [2]. Create an inheritance hierarchy abstraction called Building with 2 abstract methods and one concrete. From this, inherit a class called University Building which
Java!!![Java!! [2]. Create an inheritance hierarchy abstraction called Building with 2 abstract](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f4e06de5908_26966f4e06d40440.jpg)

[2]. Create an inheritance hierarchy abstraction called Building with 2 abstract methods and one concrete. From this, inherit a class called University Building which is considered to have at least 2 methods and the 2 abstract void methods. Put appropriate methods (of your choice) in the base University Building class. Then, create the classes Europa Building and MainBuilding which inherit and obey to all characteristics of Building and University Building (see the Diagram 1). In a TestClassUniversity Building, in the static main() function, create Europa Building and MainBuilding and upcast it to University Building, and demonstrate that all the methods declared work perfectly (of all sides). In addition in the static main() function you should create an array of University Building and upcast it to Europa Building and MainBuilding. The array should be at least of 10 memory locations. Create your own scenario for this exercise, and put practical outputs so that there are proofs that all inherited methods are still working. Diagram 1 for the exercise: Diagram 1 for the exercise: Building UniversityBuilding method EuropaBuilding MainBuilding M2 M3 M4 method Diagram 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
