房产中介JAVA代码 房产中介小程序源码( 八 )


vf基于misty算法的加密软件的实现
vb.net数据结构辅助教学
php个人日志系统
asp.net论坛程序设计(万字功能强大)
asp网页设计辅导系统
最新net动态口令认证的网上选课系统
net基于.net电子相册的开发
j2ee学生信息管理系统万字
pb网上交易系统pb
vf超市进销存管理系统vf报稿
asp留言板
c#模拟atm机系统软件的设计与开发c#
asp交友录
pb车辆
用SQL+java做一个房产中介管理系统用JAVA和SQL房产中介JAVA代码,房产中介JAVA代码我以前做过这样房产中介JAVA代码的题目房产中介JAVA代码的
JAVA作业求助第一题
package first;
public class People {
String ID;
String name;
String tel;
String sex;
}
package first;
public interface Decorator {
public void dowork();
}
package first;
public class Worker extends People{
int price;
int certificate;
String company;
}
package first;
public class houseOwner extends People{
String addr;
int decorateFund;
public void decorate(Worker w)
{
if(w.name.equals("tuWorker"))
{
tuWorker a=new tuWorker();
a.dowork();
}
else if(w.name.equals("dianWorker"))
{
dianWorker a=new dianWorker();
a.dowork();
}
else if(w.name.equals("muWorker"))
{
muWorker a=new muWorker();
a.dowork();
}
else if(w.name.equals("youqiWorker"))
{
youqiWorker a=new youqiWorker();
a.dowork();
}
}
}
package first;
public class tuWorker extends Worker implements Decorator{
public void dowork()
{
System.out.println("房产中介JAVA代码我是土工房产中介JAVA代码,负责砌墙房产中介JAVA代码,贴瓷砖");
}
}
package first;
public class muWorker extends Worker implements Decorator{
public void dowork()
{
System.out.println("我是木工,负责做家具");
}
}
package first;
public class dianWorker extends Worker implements Decorator{
public void dowork()
{
System.out.println("我是电工,负责埋电线和水管");
}
}
package first;
public class youqiWorker extends Worker implements Decorator{
public void dowork()
{
System.out.println("我是电工,负责埋电线和水管");
}
}
package first;
public class Demo {
public static void main(String args[]){
houseOwner h=new houseOwner();
Worker w=new Worker();
w.name="tuWorker";
Worker t=new Worker();
t.name="dianWorker";
Worker x=new Worker();
x.name="muWorker";
Worker y=new Worker();
y.name="youqiWorker";
h.decorate(w);
h.decorate(t);
h.decorate(x);
h.decorate(y);
}
}
房产中介JAVA代码的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于房产中介小程序源码、房产中介JAVA代码的信息别忘了在本站进行查找喔 。

推荐阅读