Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Геттеры и сеттеры для класса Dog
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' import java.util.*; import java.lang.*; /* Геттеры и сеттеры для класса Dog */ public class Cat { private String name; private int age; public String getName() { return name; } public void setName (String newName){ name = newName; // this.name = name; } public int getAge (){ return age; } public void setAge (int newAge){ age = newAge; // this.age = age; } public static void main(String[] args) { } }
run
|
edit
|
history
|
help
0
Count Islands
arithematic
Find merge point of two linkedlists - solution 1
2.C
LCM using recursion
motifCatur
cosmology
http://stackoverflow.com/questions/23175927/how-to-clone-object-defined-by-interface
Sourab Ghosh @ IP Address
3.E