06面向对象练习
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _06面向对象练习
{
class Program
{
static void Main(string[] args)
{
//作业:定义父亲类Father(姓lastName,财产property,血型bloodType),
//儿子Son类(玩游戏PlayGame方法),女儿Daughter类(跳舞Dance方法),
//调用父类构造函数(:base())给子类字段赋值
//Son son = new Son("张三",10m,"AB");
//son.PlayGame();
//son.SayHello();
//Daughter d = new Daughter("张梅梅", 100m, "O");
//d.SayHello();
//d.Dance();
//Console.ReadKey();
//作业:定义汽车类Vehicle属性(brand(品牌),color(颜色))方法run,
,