-
[객체지향PHP]2.메서드와 상속서버/PHP 2020. 11. 5. 01:28
메서드
예)
public function owner() { $a=$this->first; return $a; }
상속
예)
class Animal { } class Dog extends Animal { }
'서버 > PHP' 카테고리의 다른 글
[객체지향PHP]6.include (0) 2020.11.05 [객체지향PHP]5.Static ::(Scope Resolution Operator) (0) 2020.11.05 [객체지향PHP]4.객체 지우기 (0) 2020.11.05 [객체지향PHP]3.생성자 (0) 2020.11.05 [객체지향 PHP]1.클래스 생성 (0) 2020.11.05