chore: organize homework into first-part directory
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
class MutableClass {
|
||||
MutableClass(int value) {
|
||||
this.setValue(value);
|
||||
}
|
||||
|
||||
// Конструктор копирования
|
||||
public MutableClass(MutableClass other) {
|
||||
this.value = other.value;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
private int value;
|
||||
}
|
||||
Reference in New Issue
Block a user