We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8120c5 commit 65ff850Copy full SHA for 65ff850
3.php
@@ -1,8 +1,12 @@
1
<?php
2
// ==================================
3
-// Construct dan Destructor pada PHP
+// Construct dan Destruct pada PHP
4
5
-// Construct adalah
+// Construct adalah method khusus yang akan dijalankan secara
6
+// otomatis pada saat sebuah objek dibuat (instansiasi), yakni
7
+// ketika perintah “new” dijalankan.
8
+// Sedangkan Destruct adalah method khusus yang dijalankan
9
+// secara otomatis pada saat sebuah objek dihapus.
10
class Binatang{
11
var $nama;
12
var $warna;
0 commit comments