定义一个学生类studwnt作为父类,具有属性姓名,年龄和学位,方法不带参数的构造方法和能为所有属性赋值的构造方法

初♥不变. 2019-05-03 12:19:28
这道题怎么做哦,朋友们
...全文
119 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
这个有快捷建 一键生成
吉普赛的歌 2019-05-30
  • 打赏
  • 举报
回复
引用 2 楼 qq_44769454 的回复:
[quote=引用 1 楼 吉普赛的歌的回复:]
public class Student{
    public string Name { get;set; }
    public int Age { get;set; }
    public string Degree { get;set; }

    public Student(){}

    public Student(string name, int age, string degree){
        this.Name = name;
        this.Age = age;
        this.Degree = degree;
    }
}
谢谢啦。由于我还没有入门,这些题不太会。感谢你的帮助。[/quote] 不客气, 没事就结贴吧
初♥不变. 2019-05-29
  • 打赏
  • 举报
回复
引用 1 楼 吉普赛的歌的回复:
public class Student{
    public string Name { get;set; }
    public int Age { get;set; }
    public string Degree { get;set; }

    public Student(){}

    public Student(string name, int age, string degree){
        this.Name = name;
        this.Age = age;
        this.Degree = degree;
    }
}
谢谢啦。由于我还没有入门,这些题不太会。感谢🙏你的帮助。
吉普赛的歌 2019-05-03
  • 打赏
  • 举报
回复
public class Student{
    public string Name { get;set; }
    public int Age { get;set; }
    public string Degree { get;set; }

    public Student(){}

    public Student(string name, int age, string degree){
        this.Name = name;
        this.Age = age;
        this.Degree = degree;
    }
}

22,206

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧