Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
assigment java programming
class Object { String radius, double; int radiusNo; boolean registered= false; public Object (String COLOR, int radius, String ADDRESS) { shapeA= shapeA; radius= RADIUS; color=COLOR } //constructor1 public Object (String NAME, int MATRIC) { shapeA= NAME; radiusNo= RADIUS; area=null; } //constructor2 public void changeColor (int newcolor) { matricNo=newMatric; } //member method 1 public void updateArea (String newArea) { area=newArea; } //member method 2 public void setStatus (Radius status) { registered=status; } //member method 2 public void display () { System.out.println(“Object: “+object); System.out.println(“Radius number: “+colorNo); System.out.println(“Registration status: “+registered); } //member method 3 } //class class ShapeB { private String Radius; private int height; private String color; public double fee=0.0; public ShapeB(String Radius,int double, String STRING) { height=HEIGHT; color=String; Volume Number=double; } public String getshape () { return shape; } public int getheight(){ return double; } public String setheight(){ return double; } public double getVolume (){ return Volume; } }
run
|
edit
|
history
|
help
0
binary search
Cola Machine
4.b
Sorted Array
word Ladder
Instance fields are no overridden
Elevator Sim
contoh 43
Fireball Plugin
[a-zA-Z ]{0,12}