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

您没有登录

» Java开发网 » Java SE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:能否在java类运行时,给该类加一函数或属性? [Re:feiggle]
ranchgirl



版主


发贴: 801
积分: 132
于 2005-07-06 03:20 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
Wow, what a great attractive option you suggested?

I did a search, and found out someone has really implemented what you suggested! Imagination has no limit!

Thanks!

See this article:

Open Classes
Open classes are classes to which you can freely add new methods. Normally, if you want to add a method to a class, you have to modify the source code for that class. With open classes, you don't. Adding a method to a class is as easy as this:
......

From here:
http://www.devx.com/java/Article/10471/1763/page/3




话题树型展开
人气 标题 作者 字数 发贴时间
6592 能否在java类运行时,给该类加一函数或属性? feiggle 55 2005-07-05 14:16
6558 Re:能否在java类运行时,给该类加一函数或属性? ranchgirl 557 2005-07-06 03:20
5580 Re:能否在java类运行时,给该类加一函数或属性? arthas1982 44 2005-07-15 11:04
5607 Re:能否在java类运行时,给该类加一函数或属性? arthas1982 46 2005-07-15 11:05
5730 Re:能否在java类运行时,给该类加一函数或属性? ranchgirl 344 2005-07-15 13:44
5632 Re:能否在java类运行时,给该类加一函数或属性? arthas1982 456 2005-07-18 19:39
5971 Re:能否在java类运行时,给该类加一函数或属性? ranchgirl 1285 2005-07-19 00:13

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