This commit is contained in:
parent
171456beb4
commit
4afcbc0815
|
@ -2,6 +2,11 @@ final class Test {
|
||||||
private int $value;
|
private int $value;
|
||||||
|
|
||||||
private void __construct() {
|
private void __construct() {
|
||||||
|
print('Constructor called.' + "\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void __destruct() {
|
||||||
|
print('Destructor called.' + "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This is singleton */
|
/* This is singleton */
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
|
Constructor called.
|
||||||
int(5)
|
int(5)
|
||||||
|
Destructor called.
|
Loading…
Reference in New Issue
Block a user