Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Oval {
- double width = 5;
- double length = 10;
- }
- public void setLength(double num) {
- this.length = num;
- }
- public double getLength() {
- return this.length;
- }
- public void setWidth(double num) {
- this.width = num;
- }
- public double getWidth() {
- return this.width;
- }
- public double area (double num) {
- return this.((length*width)*0.8) ;
- }
- public void main(String[] args) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement