Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. package com.company;
  2.  
  3. public class Circle extends Figure
  4. {
  5. double pi=3.14,Area,r=0;
  6. public void Radius(double t)
  7. {
  8. r=t;
  9. }
  10. public void ShowArea(){
  11. Area=pi*(r*r);
  12. System.out.println("Aria este");
  13. System.out.println(Area);
  14. };
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement