语言层面的面试题

O 语言层面/面向对象/设计模式

O 应用层面/业务设计层面/架构层面

O 项目层面/技术阶段/任务分解层面

<?php

class base_class {
  function say_a() {
    echo "'a' said the " . __CLASS__ . "<br>";
  }

  function say_b() {
    echo "'b' said the " . get_class($this) . "<br>";
  }
}

class derived_class extends base_class {
  function say_a() {
    parent::say_a();
    echo "'a' said the " . __CLASS__  . "<br>";
  }

  function say_b() {
    parent::say_b();
    echo "'b' - said the " . get_class($this)  . "<br>";
  }
}

$obj_b = new derived_class();
$obj_b->say_a();
echo "<br>";
$obj_b->say_b();

循序渐进问问题

1.类和对象的理解 动态语言和静态的根本区别 如何形象描述

2.对象的祖先链怎么看

3.具体的代码实现

4.面试题

感谢 详细的博客 http://blog.51yip.com/php/1165.html

猜你喜欢

转载自fztree.iteye.com/blog/2287839
今日推荐