开源自动化测试工具基础-Java程序设计
2016-2-24 09:03
请先登录。
abstract class Pet
{
public abstract void play();
}
class Dog extends Pet
{
public void play(){
System.out.printl...
给#开源自动化测试工具基础-Java程序设计#指派了新任务.
任务7:请利用面向对象的思想,完成下列题目
一个女孩,具有name、age、养宠物等属性,设计一个方法,表示女孩 和自己的宠物玩。 宠物有,猫、兔子、狗。 class:Girl,Pet(父类),Dog,Cat,Rabbit。
一个女孩,具有name、age、养宠物等属性,设计一个方法,表示女孩 和自己的宠物玩。 宠物有,猫、兔子、狗。 class:Girl,Pet(父类),Dog,Cat,Rabbit。
class Employee1{
//曹硕
private String sname;
private int sage;
private String ssex;
public String getSname() {
return sname;
}
...
package jt;
class Employe{
private String name;
private int age;
private String sex;
public Employe(S...
package Nate;
public class Employe {
private String name ;
private int age ;
private String sex;
public String getName() {
r...
/*定义员工类,具有姓名,年龄,性别属性,并具有构造方法,编写显示数据方法*/
public class Employee {
private String name;
private int age;
private String gender;
...
public class Employe{
private String name;
private int age;
private String sex;
public Employee( String name,int age, ...
package lianxi;
//2014011713--杨晨
//员工类
class Employe{
private String name;
private int age;
private String sex;
public Employe(String n...
package employee;
//201403刘镯
class employee1{
//员工类
private String name;
private...
package homework1;
class Employee
{
private String name;
private int age;
private String sex;
public Employee(S...
package com.meng;
/*
* 员工类:员工类,具有姓名,年龄,性别属性,并具有构造方法,编写显示数据方法
* 姓名:李萌
* 学号:2014011773*/
public class Employee {
private...
package Test0422;
public class Employee {
private String name;
private int age;
private String sex;
//员工类
public Empl...
package Demo;
//刘朝2014011687
public class Employee {
String name;
String sex;
int age;
Employee(String name,String sex,int age){
this.nam...
class Employee1{
//李娅
private String sname;
private int sage;
private String ssex;
public String getSname() {
return sname;
}
...
package zuoye;
//杜艺婷
class Employees{
private String name;
private int age;
private String sex;
public Employees(String name,int age,St...
//乔妹
class Employee{ //员工类
private String name;
private int age;
private String sex;
public String getName() {
return name;
}
publi...
package demo;
class Employe{
String name;
int age;
String sex;
&nb...
//杜雪
class Employe{
private String name;
private int age;
private String sex;
Employe(String name,int age,String sex){
this.name=name;
th...
package Shijian;
//张晓亭 2014011772
class Employee{
String aName;
int aAge;
String aSex;
Employee(String name,int age,String sex){
this.a...
package classes;
//郭雅鑫
public class Employee {
String name;
int age;
String sex;
public Employee(String name, int age, Stri...
//吕晓锋
public class Employee {
private String name;
private int age;
private String sex;
//员工类
public Employee( String ...
package com.jia.www;
//张佳浩
//雇员类
public class Employee2 {
private String name; //三个变量
private int age;
private String sex;
...
//韩雪雪
class Employee{
String name;
int age;
String sex;
public void print()
{
System.out.println("姓名:"+name+" 年龄:"+age+" 性别:"...