package interfacea;
/*
* 接口 定义 抽象
*/
public interface USBA {
public void turnOn(); //设备启动'
public void turnruning(); //设备运行
public void turnOff(); //设备关闭
public void name(); //设备名称
public void color(); //设备颜色
public void height();//设备高度
public void weight();//设备宽度
public void length(); //设备长度
public void m();
}
package interfacea;
public class aer implements USBA{
@Override
public void turnOn() {
// TODO Auto-generated method stub
System.out.println("are已启动,请开始以下程序");
}
@Override
public void turnruning() {
// TODO Auto-generated method stub
System.out.println("are开始运行自己设定的程序");
}
@Override
public void turnOff() {
// TODO Auto-generated method stub
System.out.println("手机结束自己运行的程序系统");
}
@Override
public void name() {
// TODO Auto-generated method stub
System.out.println("are名称为huaweiwww");
}
@Override
public void color() {
// TODO Auto-generated method stub
System.out.println("are色彩为back");
}
@Override
public void height() {
// TODO Auto-generated method stub
System.out.println("are高度为8cm");
}
@Override
public void weight() {
// TODO Auto-generated method stub
System.out.println("are宽度为15cm");
}
@Override
public void length() {
// TODO Auto-generated method stub
System.out.println("are长度为20cm");
}
@Override
public void m() {
// TODO Auto-generated method stub
System.out.println("m有飒飒");
}
}
package interfacea;
public class ElectronicWhiteboard implements USBA{
@Override
public void turnOn() {
// TODO Auto-generated method stub
System.out.println("电子白板真在运行,打开你要的软件,并开始运行");
}
@Override
public void turnruning() {
// TODO Auto-generated method stub
System.out.println("电子白板真在运行,正在运行这个程序,并开始运行");
}
@Override
public void turnOff() {
// TODO Auto-generated method stub
System.out.println("电子白板结束自己运行的程序系统");
}
@Override
public void name() {
// TODO Auto-generated method stub
System.out.println("电子白板名称为huaweiwww");
}
@Override
public void color() {
// TODO Auto-generated method stub
System.out.println("电子白板色彩为back");
}
@Override
public void height() {
// TODO Auto-generated method stub
System.out.println("电子白板高度为150cm");
}
@Override
public void weight() {
// TODO Auto-generated method stub
System.out.println("电子白板宽度为200cm");
}
@Override
public void length() {
// TODO Auto-generated method stub
System.out.println("电子白板长度为300cm");
}
@Override
public void m() {
// TODO Auto-generated method stub
System.out.println("m有飒飒");
}
}
package interfacea;
public class Keyboarda implements USBA {
@Override
public void turnOn() {
// TODO Auto-generated method stub
System.out.println("键盘已启动,请开始以下程序 ok");
}
@Override
public void turnruning() {
// TODO Auto-generated method stub
System.out.println("键盘开始运行自己设定的程序");
}
@Override
public void turnOff() {
// TODO Auto-generated method stub
System.out.println("键盘结束自己运行的程序系统");
}
@Override
public void name() {
// TODO Auto-generated method stub
System.out.println("键盘名称为huaweiwww");
}
@Override
public void color() {
// TODO Auto-generated method stub
System.out.println("键盘色彩为back");
}
@Override
public void height() {
// TODO Auto-generated method stub
System.out.println("键盘高度为10cm");
}
@Override
public void weight() {
// TODO Auto-generated method stub
System.out.println("键盘宽度为30cm");
}
@Override
public void length() {
// TODO Auto-generated method stub
System.out.println("键盘长度为80cm");
}
@Override
public void m() {
// TODO Auto-generated method stub
System.out.println("m有飒飒");
}
}
package interfacea;
public class Mousea implements USBA {
@Override
public void turnOn() {
// TODO Auto-generated method stub
System.out.println("鼠标已启动,请开始以下程序");
}
@Override
public void turnruning() {
// TODO Auto-generated method stub
System.out.println("鼠标开始运行自己设定的程序");
}
@Override
public void turnOff() {
// TODO Auto-generated method stub
System.out.println("鼠标结束自己运行的程序系统");
}
@Override
public void name() {
// TODO Auto-generated method stub
System.out.println("鼠标名称为huaweiwwwe");
}
@Override
public void color() {
// TODO Auto-generated method stub
System.out.println("鼠标色彩为back");
}
@Override
public void height() {
// TODO Auto-generated method stub
System.out.println("鼠标高度为50mm");
}
@Override
public void weight() {
// TODO Auto-generated method stub
System.out.println("鼠标宽度为500mm");
}
@Override
public void length() {
// TODO Auto-generated method stub
System.out.println("鼠标长度为900mm");
}
@Override
public void m() {
// TODO Auto-generated method stub
System.out.println("m有飒飒");
}
}
package interfacea;
public class Phonea implements USBA{
@Override
public void turnOn() {
// TODO Auto-generated method stub
System.out.println("手机已启动,请开始以下程序");
}
@Override
public void turnruning() {
// TODO Auto-generated method stub
System.out.println("手机开始运行自己设定的程序");
}
@Override
public void turnOff() {
// TODO Auto-generated method stub
System.out.println("手机结束自己运行的程序系统");
}
@Override
public void name() {
// TODO Auto-generated method stub
System.out.println("手机名称为huaweiwww");
}
@Override
public void color() {
// TODO Auto-generated method stub
System.out.println("手机色彩为back");
}
@Override
public void height() {
// TODO Auto-generated method stub
System.out.println("手机高度为8cm");
}
@Override
public void weight() {
// TODO Auto-generated method stub
System.out.println("手机宽度为15cm");
}
@Override
public void length() {
// TODO Auto-generated method stub
System.out.println("手机长度为20cm");
}
@Override
public void m() {
// TODO Auto-generated method stub
System.out.println("m有飒飒");
}
}
package interfacea;
public class telephone implements USBA {
@Override
public void turnOn() {
//
System.out.println("电话已启动,请打电话");
}
@Override
public void turnruning() {
// TODO Auto-generated method stub
System.out.println("电话开始进行联系对方");
}
@Override
public void turnOff() {
// TODO Auto-generated method stub
System.out.println("电话结束:请把电源turnoff");
}
@Override
public void name() {
// TODO Auto-generated method stub
System.out.println("电话名称为大哥大");
}
@Override
public void color() {
// TODO Auto-generated method stub
System.out.println("电话色彩为开门红");
}
@Override
public void height() {
// TODO Auto-generated method stub
System.out.println("电话高度为6cm");
}
@Override
public void weight() {
// TODO Auto-generated method stub
System.out.println("电话宽度为12cm");
}
@Override
public void length() {
// TODO Auto-generated method stub
System.out.println("电话长度为18cm");
}
@Override
public void m() {
// TODO Auto-generated method stub
System.out.println("m有飒飒");
}
}