Q2 . A landlord wants to find the total space of different plots to construct a Mall . Help him to find total space of his plots by writing a java program using the concept of method overloading based...



Q2. A landlord wants to find  the total space of different plots to construct a Mall . Help him to find total space of his plots by writing a java program using the concept of
method
overloading
based on the following instructions. Save the project/file as
Q2YourID.




  1. A) Class name:
    Plot_yourFirstName



      Member Methods:



  • to calculate and return space of plot 1


space = base3
+ 4 * height



  • to calculate and return space of plot 2


space = 3.14 * radius2




  1. B) Controlling class:
    Q2YourID



  • Create an object of class Plot_yourFirstName

  • Display space of  plot 1

  • Display space of plot 2



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here