标题:java构造函数的小问题
取消只看楼主
csy294745333
Rank: 1
等 级:新手上路
帖 子:58
专家分:0
注 册:2012-3-27
结帖率:9.09%
已结贴  问题点数:5 回复次数:0 
java构造函数的小问题
程序代码:
public class boo
{
    public boo(int i){}
    public boo(String s){}
    public boo(String s,int i){}
}
public class SunOfBoo extends boo
{
    public SunOfBoo(int i,String s)
    {
    }
}
这样的程序在SunOfBoo会报错,构造函数就是因为class SunOfBoo里面未用正确的super的原因么?
搜索更多相关主题的帖子: java 
2013-08-16 11:31



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-419197-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.205958 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved