PHP从零开始-笔记-面向对象编程的概念
面向对象变成的概念
需要一一种不同的方式来考虑如何构造应用程序。通过对象可以在对应用程序所处理的显示任务、过程和思想进行编码是,实施更贴切的建模。OOP方法并不是将应用程序考虑成一个将大量数据从一个函数传递给下一个函数的控制线程,而是允许将应用程序建模成一组相互协作的对象,并且这些对象可以独立的处理某些活动。
吐槽:和js挺像的
OPP的优点
可以轻松地将单个的业务需求转换为单个的代码模块。
代码重用
类的模块化
吐槽:以后问OPP的优点就这样了
opp的组成
类(class)一个对象的“蓝本”,包含定义属性和方法的实际代码
对象(object)某个类的运行实例,包含应用程序运行所需要的所有内容数据和状态信息
继承(inheritance)可以定义一种类型类为不同类型类的子类型的能力(类似于正方形是一种矩形)
多态(polymorphism)允许一个类定义为多个类范畴的成员(例如,轿车是“有引擎的食物”以及“有轮子的事物”)
接口(interface)是指这样一种做法:设定对象能够做什么,而不具体定义这些功能(如:狗和人都是“可以行走的事物”,但是行走的方式有很大的不同)
封装(encapsulation)对象就起内部数据的访问进行保护的能力
吐槽:背熟吧,骚年
然后下面开始撸代码了
创建类
<?php
class Demo{ function sayHello($name){
print"Hello $name";
}
}
?>
添加方法
<?php
require_once('class.demo.php');
$objDemo=new Demo();
$objDemo->sayHello('white') ?>
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgoAAACqCAIAAABDIPDFAAAgAElEQVR4nO2daVQUV7vv666z7re71vl074ebe9c6o+895zXxNcZEeZNojEaNQ1CRQQSZRWRQcEYGmWcaBeIAKiKCQkPTjSiKxjk4RAUV0GZoGugJeoBuGrobTt0PBZVNTbSCKaLPb/1XVqfZVfvZu/Z+/rt2dbdYr1p/+GhVZE7VoRzRoRyR++5s0c3HWqNlcHgUBPrDNGwdM42MDQ6PDgyPGsyjuqHRPpNNYwSBZrv6TDbd0KjBPDowPDo4PGoaGRu2jvE+oWZEWI9afyhHdFAgOiAQ7RdUb9kt0BhGNIM2EAgEAn3MwnrUhgM54gMC8X6BeL9A7BiYoB60gU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AAAAjmNSmfLHgJQ121PXBKatDUxfuB7sAQAAAMCxNzLVCv+0H/zTf/DPWBmQMX8dbC4BAAAAOPZapvrOL2uZX/Yy/+xl/tnz1obyHRIAAADAP1irTP2tf+63/rlL/HOXBOTOXQs/6A0AAAAQP8m3/QSpv66Hb00DAAAA47/YWjiuHYV/Xb+f75AAAAAA/sFau/q/DTr77c5x/dXxIN8hAQAAAPyDvZb3Lwk+tyTk3JKQ4iUhxXM3RPIdEgAAAMA/2Gu5dmnI+aUh55eGnl8aev7TjYf5DgkAAADgH+y1XLs0rIQU2AMAAACAE/bwXdgFUp9tjOI7JAAAAIB/sNdy7bJdF0jN2wT2AAAAAODYm27t8t2lpOY5RfMdEgAAAMA/2Jtu7Yrw0hXhpcvDS5eHgz0AAAAAOI7j2Jtu3Q8RZT9ElK2IuLgi4uLfNsfwHRIAAADAP9ibbt3KPRdJzXeO4TskAAAAgH+wN926VXsvkfrcOZbvkAAAAAD+wd706Fbtu7R6QgtcwB4AAAAAHJP26FbvL/9xQmAPAAAAAE7Yw5oD5Wsn9IUr2AMAAACAY9Ie3bqDFaQWuh3hOyQAAACAf7C2Xt2GyArHyArHSOFPkcKvtsTxHRIAAADAP1h7r87pcMWmwxUbDws3HhYucgd7AAAAAHCsQ6Fzja1wialwjqrcHFPpsBXsAQAAAMCxToV+W7zQI07ofkToFlv5tQfYAwAAAIBjXUq9f7LQN0nonSjcliBcsi2e75AAAAAA/sHkKn1ounBnWuWO1Er/lMrvfcAeAAAAABzrUev3CSojsit3Z1aGZFSu8gN7AAAAAHCsV6OPyhVG5lYeOFq1R1C1bnsC3yEBAAAA/IMpNfqE45Vxx6tifxYdzhNtDAJ7AAAAAHBM1adPLahKPVWddLI6/kS1S2gi3yEBAAAA/IOp+vWZZ0SZZ0Tpp8VphZKtu5L4DgkAAADgn/8Poov5s3/JcpMAAAAASUVORK5CYII=" alt="" />
添加属性
<?php
class Demo{
public $name;
function sayHello(){
print "Hello $this->name!";
}
}
?>
<?php
require_once('class.demo.php');
$objDemo=new Demo();
$objDemo->name = 'white'; $obj1Demo=new Demo();
$obj1Demo->name = 'black';
$objDemo->sayHello();
$obj1Demo->sayHello();
?>
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAACXCAIAAAC3NFb6AAAgAElEQVR4nO2daVRUV5vv91297re7Vn+6/eGue9d6u293v7ffJG86g3kjbxKNxmgSNYg4CyJDiQgo4KwgMoqCqcQhTgQJIjggUIWFKKKIQ6EGBJm0mEGQoiZqnui6H7YcN2eqKgbLSp7f+q+sSrHP2c95zrP/Z+9dBaIdQpFveMqQ1gYCgUAuCu0QipeEpw5prSAQCOSi0K6fxEvCU1+OWF1Uv8rU3CV/8LSr6lHrtXuNkpoGSU3DtXuNtx61PXja1dwl71eZXD8bCATyRqHdR8r8NrpkHF1D2vuNneV3njTK+uRqvc5kNVtHLbZRi23UbB3VmaxDKn2jrK/8zpMHT7u65TqPXxsIBJomoYTjZcs2pfE3eqE21zb3VNx72i/XmG2jVtuo2WY3W+xGQmaL3WyzW22jZttov1xTUdPwsKV3QG3x+BWCQKApF9p/omxFZOrgiJVLXXLddWlzW9dLs9Vuto0aLHanMttGTRZ7a9fLqkdtvQojz8lBIJA3CqWeEq+OSh3UWFnVMai9fr9pWGOw2EYNZrveZRnMdottdFhjuHq77uHT9obnfdMh0e06EAj05oUyzojWbk4Z0FiZ6pLry+82qrRGk3XUdcsgZbKOqrSm8ntNPcNG1i4mo4bnfXYAADwByswWBcakModlr9J07X7TS6XOZB3Vme0Tlsk6OqjU3aht6VOZp9w4HAAAeAKU9UtJEJtxSJt6WrpemqyjOpN9kjJZR5s6Bx+29IFxAMDvA/RDTsn62NQXGiupjiFd+f0mvdmmM9u1Jif6tfDK+csingY6s11vtl2739Q9bKR1NBk9AeMAAA+BfvileH1sygu1ldS9hu6eQbXePDpitPMrKUP4/t9m//WT2cdO/8rTTG8e7R5U32/spnXEVFmV9MdT53qGjU5bPnnGZxxGo7G5ubmqqkosFovF4qq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lRng4DAABvAr236sc/fbXZ02EAAOBNoL+uOfbP82I8HQYAAN4Eej/w2D/Pj/V0GAAAeBPog3XH/mV+nKfDAADAm0Azgo796wIwDgAA3AB9Gnzsz9/AUgUAADdAX4Qd/ct3YBwAALgB+ir86PuLwTgAAHAD9G3kTx/5wsexAAC4AfKN/ulvfls8HQYAAN4EWrr5h5l+8M1RAADcAC2PzvTxg99VAQDADZB/VIbPkk2eDgMAAG8C+UWkfeq70dNhAADgTaCFgtSPF4Z7OgwAALwJNC849YNvwTgAAHADNHtd+rsLYFwObTwAAAGNSURBVKkCAIAbIJ/Ag/8xHzZHAQBwAzQj4PC/z4ePYwEAcAP0UeCP/zofvgAGAIAboI+Djv3bAvglNwAA3ADNCD75b99u83QYAAB4E+jTsFN/XgjGAQCAG6Avwk+/s3i7p8MAAMCbQF9Fnn7fF4wDAAA3QN9tPv2xHxgHAABugPxiT3y6DPY4AABwA7Ry2/HPV8A/jwAAgBugNduPzFoBf3MUAAA3QGu2Cmcth2+OAgDgBmhlTNbn/vC7KgAAuAHyizw4E/50IAAA7oAWhh+asRiMAwAAN0DzBZkfLIKlCgAAboDmhP3w/sJoT4cBAIA3gWYJjr67EH6tHgAAN0BfbDj5zmL45igAAG6AvtiY/c7iHZ4OAwAAbwJ9sensO767PB0GAADeBJoVlffukj2eDgMAAG8CzY4+957fXk+HAQCAN4Fmb84H4wAAwC3Ql5vP/9Uv3tNhAADgTaA5W86/vxSMAwAAN0BfxRS875/g6TAAAPAm0FexYBwAALgHmhd34T+X7fN0GAAAeBP/H5lya5Z+AYKlAAAAAElFTkSuQmCC" alt="" />
保护对成员变量的访问
可以将name属性的值设置为任意所需的数据-包括对象、整数数组、文件句柄或任何其他没有意义的值。但是,并不能再设置name属性时执行任何形式的数据验证或更新任何其他的值。
为了解决这个问题,必须以get[property]和set[property name]的函数形式来实现属性。这些函数称为存取器方法
<?php
class Demo{
private $_name;
public function sayHello(){
print "Hello" . $this->getName() . "!";
}
public function getName(){
return $this->_name;
}
public function setName($name){
if(!is_string($name) || strlen($name)==0){
throw new Exception("Invalid name value!");
}
$this->_name=$name;
}
}
?>
<?php
require_once('class.demo.php');
$objDemo=new Demo();
$objDemo->setName('white');
$objDemo->sayHello();
$objDemo->setName(37);
?>
name属性的成员访问级别由Public变成private,并且怎家了一个下划线作为前缀。下划线是建议的命名约定,表明私有的成员变量和函数;
私有的内部成员变量不能从类的外部访问。由于不能直接访问这些变量,因此必须要getName()和setName()存取器方法获得这些信息,从而确保类可以在允许设置值之前检查该值。。。
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAABQ8AAAEyCAIAAADbcLGYAAAgAElEQVR4nO3dvYskaWLn8fgXZB7jyJbWaW4TmjEEB20JaddrY2G6oI1lQCBf9jTFMda65wjEHUxTSDfeSAKJkrlqrjgYhGSMzhCSoZbmCoS24AQLe0ZWRsbzGk9E5EtU5efLl6GnMiIy4oknnuf5xVt2f/Qnf/YPH//tn//tP/7Pv/y/5+Q//9t//MPHf/ujP/mz7/7lP0iSJEmSnGT3lx/+7o+/+at//Nd//7+/+OVz8h//9d//+Ju/+ssPf3f2IiZJkiRJPjm77/7lP/7ir//2j/74T//bf/+fz8k/+uM//Yu//tuzly9JkiRJ8inanX0NSJIkSZJcm93NX/xvkiRJkiQ5tPsVAAAAAAAIkZYBAAAAAIiRlgEAAAAAiJGWAQAAAACIkZYBAAAAAIiRlgEAAAAAiJGWAQAAAACIkZYBAAAAAIiRlgEAAAAAiJGWAQAAAACIkZYBAAAAAIiRlgEAAAAAiDliWv7mp1336c++S/59sIV3P/0m/+F3P/v0wF8HAAAAALgoamn5u599mkukrcl3NWl5ypdXlwsAAAAAuBCeZVoOmXSlWVoGAAAAAEjLuYndww0AAAAAl84h0vJ3P/u02zGYvJqWv/lp16UzxRn4m592wXz7NdpNOVjOfr59Pg6+ZriowjpLywAAAACAXx0gLQdXboO0W0zLUQYe/m9m2cNV+Oanu//bxeDhl/VzhleT02vL5XWWlgEAAAAAv2pIy3nyufRX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AjLQMAAAAAECMtAwAAAAAQIy0DAAAAABAjLQMAAAAAECMtAwAAAAAQIy0DAAAAABAjLQMAAAAAECMtAwAAAAAQIy0DAAAAABAjLQMAAAAAECMtAwAAAAAQIy0DAAAAABAjLQMAAAAAECMtAwAAAAAQIy0DAAAAABAjLQMAAAAAECMtAwAAAAAQIy0DAAAAABAjLQMAAAAAECMtAwAAAAAQIy0DAAAAABAjLQMAAAAAECMtAwAAAAAQIy0DAAAAABAjLQMAAAAAECMtAwAAAAAQIy0DAAAAABAjLQMAAAAAECMtAwAAAAAQ8/8BneJ1IGs3aAsAAAAASUVORK5CYII=" alt="" />
成员变量或方法可以有3个不同级别的可见性:公有的、私有的和受保护的。
公有成员可以任意的代码访问。
私有成员只有类自身可以访问。这些成员通常用于类的内部处理买并且可能诸如注入某个数据库连接句柄活配置信息之类的内容。
受保护的成员可以由类自身以及从该类继承的类使用
初始化对象
对于许多将要创建的类,需要在初次实例化该类的对象时执行一些特殊的设置。例如,可能需要从数据库中获取某些信息,或者是初始化某些属性值。通过创建一个称为构造函数的特殊方法可以执行实例化对象所需要的任何活动,改方法在PHP中是通过名为_construct()的函数来实现的。在实例化对象时,PHP将自动调用这个特殊的函数
<?php
class Demo{
private $_name;
public function _construct($name){
$this->name = $name;
}
function sayHello(){
print "Hello $this->name!";
} }
?>
<?php
require_once('class.demo.php');
$objDemo=new Demo();
$objDemo->_construct('white');
$objDemo->sayHello();
?>
PHP从零开始-笔记-面向对象编程的概念的更多相关文章
- [Java入门笔记] 面向对象编程基础(二):方法详解
什么是方法? 简介 在上一篇的blog中,我们知道了方法是类中的一个组成部分,是类或对象的行为特征的抽象. 无论是从语法和功能上来看,方法都有点类似与函数.但是,方法与传统的函数还是有着不同之处: 在 ...
- [Java入门笔记] 面向对象编程基础(一):类和对象
什么是面向对象编程? 我们先来看看几个概念: 面向过程程序设计 面向过程,是根据事情发展的步骤,按进行的顺序过程划分,面向过程其实是最为实际的一种思考方式,可以说面向过程是一种基础的方法,它考虑的是实 ...
- python笔记 面向对象编程从入门到高级
目录: 一.概念 二.方法 2.1组合 2.2继承 2.3多态 2.4封装 2.5归一化设计 三.面向对象高级 3.1 反射(自省) 3.2 内置方法__getatter__, __ ...
- PHP 笔记——面向对象编程知识点
类是属性和方法的集合,是面向对象编程方式的核心和基础,通过类可以将零散的用于实现某项功能的代码进行有效管理. 类是由class关键字.类名和成员组成的,类名不区分大小写. 在类中定义常量使用关键字 c ...
- Python笔记002-Python编程基础概念
第二章(1):Python编程基础概念 1. Python 程序的构成 Python 程序有模块组成.一个模块对应 Python 源文件,一般后缀名是:.py. 模块有语句组成.运行 Python程序 ...
- JavaScript高程第三版笔记-面向对象编程
之前有篇博客曾提到过一点js的面向对象编程:js面向对象编程. 这里就结合js高程详细剖析一下javascript的面向对象编程. 前序: 1⃣️Object.defineProperty() var ...
- python面向对象编程 -- 基本概念
面向对象的编程简要概括就是将要处理的问题抽象为数据和操作的集合,用类对其进行封装.其中数据和操作都称为类的属性,它们是一般是不变的. 对类进行实例化生成我们所说的对象,对象有自己的属性.对象的属性一般 ...
- Python之路第一课Day7--随堂笔记(面向对象编程进阶...未完待续 )
本节内容: 面向对象高级语法部分 静态方法.类方法.属性方法 类的特殊方法 反射 异常处理 Socket开发基础 作业:开发一个支持多用户在线的FTP程序 面向对象高级语法部分 一.静态方法 通过@s ...
- Python笔记-面向对象编程
1.类和实例 面向-对象的三大特点:数据封装.继承和多态 在Python中,所有数据类型都可以视为对象,当然也可以自定义对象.自定义的对象数据类型就是面向对象中的类(Class)的概念. 假设我们要处 ...
随机推荐
- iOS 即时通讯SDK的集成,快速搭建自己的聊天系统
现在的外包项目需求变态的各种各样,今天要做社交,明天要加电商,后天又要加直播了,这些系统如果要自己开发,除非大公司技术和人力都够,不然短时间是几乎实现不了的.所以学会灵活利用市面上的各种SDK是灰常重 ...
- <转>iOS9 Day-by-Day:iOS开发者必须了解的iOS 9新技术与API
iOS9 Day-by-Day是作者Chris Grant新开的一个系列博客,覆盖了iOS开发者必须知道的关于iOS 9的新技术与API,并且还进行了实际操作演练,每篇文章中相关的代码Chris都会将 ...
- PHP之:多图上传
撰写日期:2016-6-30 15:17:35 Thursday 参考 http://a3147972.blog.51cto.com/2366547/1381136 (08-05ThinkPHP+sw ...
- Linux Basis --- commands of vi
EDIT mode to GENERAL mode: press ESC general mode: CLOSE FILE :q! :force to close the file but no ...
- excel2013添加坐标轴名称label
图画好了,x.y轴没有名称,怎么办那 点击左上角有个---添加图标元素----里面有轴标题应该就是
- CentOS7安装Ambari
环境: CentOS7安装两个节点:master.slave1.并配置ssh无密码登录. 步骤: 获取 Ambari 的公共库文件(public repository): wget http://pu ...
- iterator and iterable
前者是迭代器 后者是接口,List等继承这个接口
- easyui numberbox一些常用属性,方法
1.value="1234567.89"//数字框中的值 2.precision:2//精度(小数点后两位) 3.groupSeparator:','//(组分隔符) 4.deci ...
- Ubuntu打开终端的方法三种
这个不应该称得上是一个问题,但是,发现对于新手,确实是个难题因为少有人能够提到这一点,基本都是上来就直接讲用到的命令.我开始的时候也曾经被这个问题困扰着,后来,搜了一会儿才弄明白.1.在菜单内的附件上 ...
- 自然语言0_nltk中文使用和学习资料汇总
http://blog.csdn.net/huyoo/article/details/12188573 官方数据 http://www.nltk.org/book/ Natural Language ...