-
-
Save uncoded-ro/96180aa216387bbd36a74e224fc4a94a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Cerc { | |
static final double PI = 3.14; | |
static int count = 0; | |
double x; | |
double y; | |
double raza; | |
// metoda non-statica | |
public double aria() { | |
return PI * raza * raza; | |
} | |
// metoda statica | |
static int nrObiecte() { | |
return count; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment