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 abstractmethods and one concrete. From this, inherit a class called University Building

[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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!