+1(978)310-4246 credencewriters@gmail.com
  

Description

Home Work
(For bonus marks)
Circle A=Ï€ x radius^2
Square A=side^2
Triangle A=(1/2) height x base
Sphere A=4 x π x radius^2
Cube A=6 x edge^2
2
Assignment Requirements
• Create the hierarchy of classes.
• Code file: AbstractDemo.java
â–ª All classes of hierarchy as protected classes
â–ª One public class containing main method
• Code file: Measurable.java —– interface
• Code file: InterfaceDemo.java
â–ª All classes of hierarchy as protected classes
â–ª One public class containing main method
3
Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help
TDD – R – 0
Q Search
Start Page
JavaApplication1.java
X
jects X Files Services
Java Application1
Source
History
1
*
w N
To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools Templates
* and open the template in the editor.
*/
package javaapplicationi;
5
6
7
8
**
9
*
10
@author HP
11
12
public class JavaApplication1 {
13
14 D
15
* @param args the command line arguments
16
vigator X
17 E
mbers
Kempty>
el
18
public static void main(String[] args) {
// TODO code application logic here
}
Java Application1
d main(String[] args)
19
20
}
21
22
1
AM 12:46
11/6/2020
EN
o
P
NE
X
Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help
TDD – R – 0
Q Search
Start Page
JavaApplication1.java
X
jects X Files Services
Java Application1
Source
History
1
*
w N
To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools Templates
* and open the template in the editor.
*/
package javaapplicationi;
5
6
7
8
**
9
*
10
@author HP
11
12
public class JavaApplication1 {
13
14 D
15
* @param args the command line arguments
16
vigator X
17 E
mbers
Kempty>
el
18
public static void main(String[] args) {
// TODO code application logic here
}
Java Application1
d main(String[] args)
19
20
}
21
22
1
AM 12:46
11/6/2020
EN
o
P
NE
X
2021032920543 homework (6).zip homework – ZIP archive, unpacked size 269,304 bytes
Name
Size
Packed Type
Modified
CRC32
124
AbstractDemo.j…
abstractDemo.p…
InterfaceDemo.j…
interfaceDemo….
Measurable.java
View – AbstractDemo.java
File Edit View Help
package homework;
public abstract class AbstractDemo {
137
protected abstract class Shape {
Tabstract void shapel);
}
protected abstract class TwoDimensionalShape extends Shape !
protected abstract class Three DimensionalShape extends Shape {}
protected class Circle extends TwoDimensionalShape {
@Override
void shapel) {
System.out.println(“Circle”);
}
protected class Square extends TwoDimensionalShape {
@Override
void shapel) {
System.out.println(“Square”);
}
protected class Triangle extends TwoDimensionalShape {
@Override
void shapel) {
System.out.println(“Triangle”);
}
2,238 bytes
Windows text

المزيد –
jdk-8u241-windows-i586.exe
تطبيق
– فتح
ما تشغيل كمسؤول
فتح موقع الملف
dk
0
homewo
hp

Purchase answer to see full
attachment

  
error: Content is protected !!