Da traduttori professionisti, imprese, pagine web e archivi di traduzione disponibili gratuitamente al pubblico.
object leafy does not belong to a subclass of spinach object leafy belongs to class spinach a subclass of vegetable
위의 예제에서 중요한 것은, $leafy 객체는 vegetable 클래스의 하위클래스인 시금치 클래스의 객체라는 것입니다. 위의 예제는 다음과 같은 결과가 출력됩니다.
one important thing to note in the example above is that the object $leafy is an instance of the class spinach which is a subclass of vegetable, therefore the last part of the script above will output:
예 2. test_script.php