Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区 » Java与OOP初步  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 基础概念问题
andofgame





发贴: 1
积分: 0
于 2005-07-27 19:41 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
public class Birthday
{
public String year;
public String month;
public String day;
public Birthday()
{
year=”0000”;
month=”00”;
day=”00”;
}
public Birthday(String y,String m,String d)
{
year=y;
month=m;
day=d;
}
public String getBirthday()
{
String fullbirthday=month+”/”+”/”+day+”/”+year;
return fullbirthday;
}
}
为什么两个方法声明不一样呀,一个括号后面有参数一个却没有。
本人天生愚笨请高手详细解释
先谢过了




话题树型展开
人气 标题 作者 字数 发贴时间
13152 基础概念问题 andofgame 390 2005-07-27 19:41
11361 Re:基础概念问题 jefferykim 21 2005-07-27 21:51
11285 Re:基础概念问题 seman 57 2005-08-08 02:17
11194 Re:基础概念问题 hsqujy 138 2005-08-08 10:24
11330 Re:基础概念问题 hsqujy 64 2005-08-08 10:31
11567 Re:基础概念问题 why 198 2005-08-08 11:28
11501 Re:基础概念问题 yangun 11 2005-08-08 10:40
11810 Re:基础概念问题 ranchgirl 666 2005-07-27 22:16
11478 Re:基础概念问题 caishikai 221 2005-07-29 06:41
11421 Re:基础概念问题 lelexy 6 2005-07-30 22:04
11296 Re:基础概念问题 naughty009 46 2005-07-30 22:09
11383 Re:基础概念问题 1047 130 2005-08-05 09:54
11383 Re:基础概念问题 alta211 137 2005-08-05 10:12
11197 Re:基础概念问题 why 112 2005-08-05 13:00
11637 Re:基础概念问题 javalean 43 2005-08-05 20:08
11608 Re:基础概念问题 zhoujun_BOSS 35 2005-08-06 12:11

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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