怎么理解odp中实例化类的形式

最近在看百度的odp中,在代码中经常会出现下面这样的代码,我一直不是很明白

                $objServicePageSample = new Service_Page_Sample();

                $arrPageInfo = $objServicePageSample->execute($arrInput);

$objServicePageSample对象指的是service/page/sample类,odp是将这3个路径用下划线连起来了。

猜你喜欢

转载自blog.csdn.net/weixin_36521716/article/details/81034298