subject
Mathematics, 27.10.2021 19:10 mikeeway33

Code for the below question We have to calculate the area of a rectangle, a square and a circle. Create an
interface 'Shape' with three methods declarations namely 'RectangleArea' taking two
parameters, 'SquareArea' and 'CircleArea' taking one parameter each. The parameters
of 'RectangleArea' are its length and breadth, that of 'SquareArea' is its side and that of
'CircleArea' is its radius. Now create another class 'Area' containing all the three
methods 'RectangleArea', 'SquareArea' and 'CircleArea' for printing the area of
rectangle, square and circle respectively. Create an object of class 'Area' and call all the
three methods.

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 21:50
Prism m and pyramid n have the same base area and the same height. cylinder p and prism q have the same height and the same base perimeter. cone z has the same base area as cylinder y, but its height is three times the height of cylinder y. the figures and have the same volume.
Answers: 3
question
Mathematics, 21.06.2019 22:10
Aadc is formed by reflecting aabc across line segment ac, as shown in the figure. if the length of ac is 4 units, the area of aadc is square units.
Answers: 3
question
Mathematics, 21.06.2019 23:50
Find the interior angle of a regular polygon which has 6 sides
Answers: 1
question
Mathematics, 22.06.2019 02:30
Find a parametrization for the curve「and determine the work done on a particle moving along γ in r3 through the force field f: r^3--r^3'where f(x,y,z) = (1,-x,z) and (a) im (γ) is the line segment from (0,0,0) to (1,2,1) (b) im (γ) is the polygonal curve with successive vertices (1,0,0), (0,1,1), and (2,2,2) (c) im (γ) is the unit circle in the plane z = 1 with center (0,0,1) beginning and ending at (1,0,1), and starting towards (0,1,1)
Answers: 3
You know the right answer?
Code for the below question We have to calculate the area of a rectangle, a square and a circle. C...
Questions
Questions on the website: 13722361