質問編集履歴
1
ソースコードの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
// 親クラス
|
7
7
|
class Parent {
|
8
8
|
|
9
|
-
public db;
|
9
|
+
public $db;
|
10
10
|
|
11
11
|
function __construct() {
|
12
12
|
$this->db = new Database();
|
@@ -14,8 +14,8 @@
|
|
14
14
|
|
15
15
|
public function create_child() {
|
16
16
|
require_once(dirname(__FILE__)."Child.php");
|
17
|
-
child = new Child();
|
17
|
+
$child = new Child();
|
18
|
-
child->show_data();
|
18
|
+
$child->show_data();
|
19
19
|
}
|
20
20
|
}
|
21
21
|
|