diff --git "a/\345\220\264\345\220\257\346\230\214/20220517-PHP\347\261\273\344\270\216\345\257\271\350\261\241.md" "b/\345\220\264\345\220\257\346\230\214/20220517-PHP\347\261\273\344\270\216\345\257\271\350\261\241.md"
new file mode 100644
index 0000000000000000000000000000000000000000..80a5c6b3b3e9e2d994995130548412f220ffce6b
--- /dev/null
+++ "b/\345\220\264\345\220\257\346\230\214/20220517-PHP\347\261\273\344\270\216\345\257\271\350\261\241.md"
@@ -0,0 +1,147 @@
+# 解答
+
+``` php
+brand = $brand;
+ $this->price = $price;
+ }
+
+ /**
+ * @return mixed
+ */
+ public function getBrand()
+ {
+ return $this->brand;
+ }
+
+ /**
+ * @param mixed $brand
+ */
+ public function setBrand($brand)
+ {
+ $this->brand = $brand;
+ }
+ /**
+ * @return mixed
+ */
+ public function getPrice()
+ {
+ return $this->price;
+ }
+ /**
+ * @param mixed $price
+ */
+ public function setPrice($price)
+ {
+ $this->price = $price;
+ }
+
+}
+$cars=new car("车名:"."法拉利 ","车的价格:"."500万元");
+echo $cars->getBrand().$cars->getPrice();
+
+//echo $a;
+//2、 在上例的基础上为汽车类定义一个子类——跑车类。为子类实例化对象并访问父类的属性。
+class bus extends car{
+ private $color;//颜色
+ private $speed;// 速度
+
+ function __construct($brand, $price,$color,$speed)
+ {
+ $this->color = $color;
+ $this->speed = $speed;
+ parent::__construct($brand, $price);
+ }
+
+ /**
+ * @return mixed
+ */
+ public function getColor()
+ {
+ return $this->color;
+ }
+
+ /**
+ * @param mixed $color
+ */
+ public function setColor($color)
+ {
+ $this->color = $color;
+ }
+
+ /**
+ * @return mixed
+ */
+ public function getSpeed()
+ {
+ return $this->speed;
+ }
+
+ /**
+ * @param mixed $speed
+ */
+ public function setSpeed($speed)
+ {
+ $this->speed = $speed;
+ }
+}
+
+echo "