Home > Backend Development > PHP Tutorial > 类中的mount()是调用其他函数的步骤吗

类中的mount()是调用其他函数的步骤吗

WBOY
Release: 2016-06-13 12:32:32
Original
816 people have browsed it

类中的mount()是调用其他函数的方法吗

本帖最后由 lghyt 于 2013-11-29 22:26:45 编辑  interface USB{ 
   function mount();
   function work();
   function unmount();
  } 

 class DianNao{
   function useUSB($usb){
   $usb->mount();
   $usb->work();
   $usb->unmount();
   }
  }

刚学习类,所以在取值上有点胡乱,这里的unmount() 是不是调取接口中方法呢,因为在本类中没有看到声明。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template