项目作者: rapraquion

项目描述 :
Encapsulation Activity - wk2dy2
高级语言: PHP
项目地址: git://github.com/rapraquion/Cars.git
创建时间: 2020-03-11T09:31:07Z
项目社区:https://github.com/rapraquion/Cars

开源协议:Apache License 2.0

下载


Cars

Activity - wk2dy2

Write a PHP class that encapsulates and display different catergories Color, Model and Brand and extends to its superclass.

Super class : Car

  1. class Car {
  2. public function __construct();
  3. //Encapsulate your member function here `color`, `model` and `brand`
  4. }

Sub classess : MentorCar, StudentCar

  1. class MentorCar extends Car {
  2. //Your code
  3. }
  4. class StudentCar extends Car {
  5. //Your code
  6. }

Finished : Submit a link of the source code to the Google Classroom assignment related to this project.