srkp.net
当前位置:首页 >> 用JAVA编写一个学生类StuDEnt的程序 >>

用JAVA编写一个学生类StuDEnt的程序

这个是你们老师布置的作业吧。。。。

public class Student{ private String num; private String sex; private String name; private int age; public Student(String num,String sex,String name){ this.num=num; this.sex=sex; this.name=name; } public String getNum(){ return...

学生类: public class Student{ private String name; private int age; private double score; public dd(String name, int age, double score) { super(); this.name = name; this.age = age; this.score = score; } public String getName() ...

pubilc class Student { private String name; private int age; private int score; public void setScore(int score) { this.score = score; } public String getScore() { if(score >= 60) return "考试及格"; else return "考试不及格"; } p...

学生类: public class Student{ private String name; private int age; private double score; public dd(String name, int age, double score) { super(); this.name = name; this.age = age; this.score = score; } public String getName() ...

Student.java类: public class Student { private String name; private String className; private String courseName; private int score; public Student(){ } public Student(String name, String className, String courseName, int score)...

package zhidao;import java.util.Scanner;public class Student implements Compare{private String no;private String name;private double score;public Student ( String no, String name, double score ){this.no = no;this.name = name;th...

package a; public class Student{ public static void main(String args[]){ private int stuId; private String name; //其它属性省略,方法同上。 public Student(){ //默认构造方法 } public void setStuId(int stuId){ this.stuId=studId; ...

public class student{ private stuno; private clano; private stuage; private stusex; public getstuno(string no) { get{ return stuno } set{ stuno=no } } public getclano(string no) { get{ ruturn clano } set{ clano=no } } public ge...

编写学生类Student,属性包含姓名,年龄,性别,根据该类分别创建五个学生对象,如下: public class Student {private String name;private int age;private String sex;public Student(String name,int age,String sex){this.name=name;this.a...

网站首页 | 网站地图
All rights reserved Powered by www.srkp.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com