Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Java SE 综合讨论区
打印话题 寄给朋友 订阅主题 |
作者 | 求助请各位大哥指教(..is not abstract and does not override abstract method..) |
jialichao
发贴: 12 积分: 0 |
于 2006-05-01 16:26
package one; interface Add{ public void addNamber(int a,int b); } interface Minus{ public int minusNamber(int a,int b); } class Account implements Add,Minus{ public void addNumber(int a,int b){ int val; val=a+b; System.out.println("a+b= "+val); } public int minusNumber(int a,int b){ int val; val=a-b; System.out.println("a-b= "+val); } } public class Interface_a{ public static void main(String[] args){ Add obj=new Account(); obj.addNamber(10,20); Minus obj1=new Account(); obj1.minusNamber(100,50); } } 这段程序的出错提示如下: Interface_a.java:8: one.Account is not abstract and does not override abstract method addNamber(int,int) in one.Add class Account implements Add,Minus{ 小弟实在是不知道这该怎么改了,望各位大哥指教呀。
why edited on 2006-05-01 19:22
有了Swing为什么还要SWT? |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
4500 | 求助请各位大哥指教(..is not abstract and does not override abstract method..) | jialichao | 756 | 2006-05-01 16:26 |
3719 | Re:求助请各位大哥指教。 | tomcatexpert | 118 | 2006-05-01 16:37 |
3620 | Re:求助请各位大哥指教(..is not abstract and does not override abstract method..) | jialichao | 39 | 2006-05-02 13:08 |
3708 | Re:求助请各位大哥指教(..is not abstract and does not override abstract method..) | tomcatexpert | 27 | 2006-05-02 23:39 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |