How are object methods in classes stored in memory?
茄子
茄子 2019-03-05 15:37:34
0
0
711

<?php

class Demo01

{
          public function say(){
            echo 'hello';
                                 ‐                            # class Sub extends Demo01
{

}

// How is the above object method say() stored in memory? Is there one in the subclass and one in the parent class? And only one copy?
// What happens if this method is overridden in a subclass?


茄子
茄子

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template