由买买提看人间百态

topics

全部话题 - 话题: class
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
g********d
发帖数: 19244
1
☆─────────────────────────────────────☆
felixcat (felixcat) 于 (Mon Apr 8 15:15:10 2013, 美东) 提到:
不少用户都有这样的感觉:W212 E class前排中控台在车子内饰整体中看来有点怪异:
整个区域显得很空旷,中央扶手箱前面除了导航那颗旋钮和另外几个小按钮之外是一片
空白的。点烟器和cup holder被一整块大的滑动挡板盖着,占据了整个中控台剩余的所
有地方。这么一大块空地,完全能放得下换挡把手,并且那个地方对于轿车来讲安置换
挡杆也是很典型的做法。
但现在换挡杆跑去了方向盘那里,留出这么一大块地方出来,给人感觉就是实际上这个
地方有别的用途,只是卖给我们的型号不带这个功能而已。实情是:这个车型在设计时
候,首先考虑的是出租车的用途。比如说有没有发现E class的车尾箱特别深?(比5系
/A6/GS都明显深很多)——导致E class后座腿部位置比较窄。这是因为设计的时候考
虑到这车子主要用途是出租车,因此后背箱要足够大放得下旅客的国际航班托运行李。
换挡杆也是另外一个例子。看下... 阅读全帖
z*******3
发帖数: 13709
2
来自主题: Java版 - 再论abstract class
之前说过我对abstract class的看法,倒是引来不少非议
尤其是有些人居然举出了例子,好,我们就从这个例子开始
有人说在这种情况下要使用abstract class
比如一个animal,有walk和sing方法
那么代码就是
public abstract class Animal{
public void walk(){System.out.println("walk")};
public abstract void sing();
}
然后对于具体的实现类,比如Cat,有如下实现
public class Cat extends Animal{
public void sing(){
System.out.println("cat sing");
}
}
这样一个类,好处就是“便于扩展”等等
OK,那么我们就从这个例子出发,说说为什么在j2ee环境中,我们不这么做
然后说说会怎么做
首先,在j2ee的环境中,关于animal这种实体
我们会在各个层面建立entity
比如在db层面建立一个表,叫做animal,然后有一个cat记录
然后通过orm,建立起一个dto之类的玩... 阅读全帖
z*******3
发帖数: 13709
3
来自主题: Java版 - 再论abstract class
之前说过我对abstract class的看法,倒是引来不少非议
尤其是有些人居然举出了例子,好,我们就从这个例子开始
有人说在这种情况下要使用abstract class
比如一个animal,有walk和sing方法
那么代码就是
public abstract class Animal{
public void walk(){System.out.println("walk")};
public abstract void sing();
}
然后对于具体的实现类,比如Cat,有如下实现
public class Cat extends Animal{
public void sing(){
System.out.println("cat sing");
}
}
这样一个类,好处就是“便于扩展”等等
OK,那么我们就从这个例子出发,说说为什么在j2ee环境中,我们不这么做
然后说说会怎么做
首先,在j2ee的环境中,关于animal这种实体
我们会在各个层面建立entity
比如在db层面建立一个表,叫做animal,然后有一个cat记录
然后通过orm,建立起一个dto之类的玩... 阅读全帖
w*******y
发帖数: 60932
4
Looks like if you sell on ebay especially motors you will be getting money
back from them due to a pending lawsuit.
IMPORTANT LEGAL NOTICE PLEASE DO NOT DELETE
A. INTRODUCTION
You are receiving this notice because eBays records show that you paid Final
Value Fees for selling items in the vehicle-related parts and accessories
categories on eBay Motors (Parts and Accessories) between April 21, 2005,
and August 26, 2009. You will be entitled to a partial refund of those fees
(net o... 阅读全帖
w*******y
发帖数: 60932
5
Westinghouse 32" Class / LED / 720p / 60Hz HDTV:
http://www.bestbuy.com/site/Westinghouse - 32" Class / LED / 720p / 60Hz / HDTV/3836809.p?id=1218435155791&skuId=3836809&st=3836809&cp=1&lp=1&AID=10597222&SID=F012A00A0AC72A00284322A0A01A0A0N28&URL=http://www.bestbuy.com/site/Westinghouse+-+32%26%2334%3B+Class+/+LED+/+720p+/+60Hz+/+HDTV/3836809.p?id=1218435155791&skuId=3836809&st=3836809&cp=1&lp=1&ref=39&CJ&loc=01&PID=2026489&CJPID=2026489
for $229.99
Dynex 37" Class / LCD / 720p / 60Hz HDTV... 阅读全帖
u****s
发帖数: 2186
6
来自主题: Java版 - abstract class 的简单例子
When & why abstract class:
1. All subclasses of the abstract class inherit from the abstract class
There is an 'Is-A' relationship between abstract class and its subclasses
. Interface is a 'Can-Do' relationship.
2. All subclasses share most of the fields and methods, only one or just a
few different methods with different implementation. If all these classes
implement an interface, you just put it in the abstract class declaration.
3. Sometimes you only want these methods mentioned in 2. to ... 阅读全帖
w*******y
发帖数: 60932
7
NOTICE OF PROPOSED CLASS ACTION SETTLEMENT
To: All persons who are or were accountholders or prospective accountholders
who provided physical mailing, postal or email addresses to TD Ameritrade,
Inc. on or before September 14, 2007 (the "Settlement Class").
Your rights might be affected by a Class Action Settlement.
Below is a summary of the proposed settlement. In re TD Ameritrade Account
Holder Litigation,
Case No. C 07 2852 VRW
WHAT THIS SETTLEMENT IS ABOUT: These lawsuits were filed against ... 阅读全帖
w*******y
发帖数: 60932
8
Just got this in an email. Apparently you can sign up to get giftcards or
cash from Wal-Mart in the settlement if you subscribed to Netflix during the
dates in question.
quote
If You Rented Online DVDs from Netflix
A Class Action and a Settlement with Wal-Mart May Affect Your Rights
Para una notificaci髇 en Espa駉l, llamar 1-877-389-4469 o visitar www.
OnlineDVDclass.c om:
http://www.OnlineDVDclass.com
Records show that you paid a subscription fee to rent DVDs online from
Netflix anytime from May... 阅读全帖
g********d
发帖数: 19244
9
☆─────────────────────────────────────☆
felixcat (好戏才刚开始) 于 (Tue Oct 8 18:34:36 2013, 美东) 提到:
当时在现场看到那个人穿着口袋上印有奔驰商标的衬衫,看样子不像是打酱油的。我上
去一问,果真是MBUSA的工程师。
我问他,很多人都反映E350刹车的时候,车头往下垂,车尾往上抬,有很明显的“点头
”现象。
那位工程师跟我说,因为E class设计的时候是按照出租车的目的来设计的,因此车子
的结构布局、悬挂设计全部都是按照后座坐了两个成人、行李箱放满行李那种情形来考
虑的。因此假如车里只有司机一个人,后尾箱是空的话,头重脚轻,刹车时必然是车头
下垂,车尾上抬。
以上是那个工程师的解释,供参考用。
☆─────────────────────────────────────☆
jamesgordon (高登大爷) 于 (Tue Oct 8 18:37:09 2013, 美东) 提到:
哦,没有上下文。最近大湿作文质量不行,不图文并茂。
☆──────────────────────... 阅读全帖
w*******y
发帖数: 60932
10
If you bought a laptop, computer monitor or television with a flat-panel LCD
display between 1999 and 2006, you could be eligible for damages under a
collective $538 million class action settlement with Samsung, Sharp, Hitachi
, Epson, Chimei, Chungwa and HannStar.
This class action lawsuit settlement only covers consumers who purchased
INDIRECTLY from these companies. "Indirectly" means that you purchased a TFT
-LCD panel in a television, monitor or notebook computer from someone other
than the... 阅读全帖
P******l
发帖数: 1648
11
查到个帖子
http://www.mitbbs.com/article_t/Money/31541569.html
Here are all the notes
发信人: fakeplastic (收音机的大脑袋), 信区: Money
标 题: Re: 谁来写个AA商务仓攻略吧。
发信站: BBS 未名空间站 (Mon Apr 18 10:27:59 2011, 美东)
1)ORD有AA的公务舱休息室,不过没去,就在大厅里玩电脑,现在想起来后悔不已啊。
2)飞机上吃的不错,刚登机会发菜单,一般可以有中式或西式的2选1。自己研究研究就
好了,服务很到位,酒类饮料俱全。
3)座位布局是2-3-2,这个在SEATGURU.COM之类的网站看看就一目了然个人认为是中间3
个里面两个靠走道的最合适,因为中间经常空着,这样自由空间就很大。边上的两个不
推荐,靠窗我觉得没有意义,因为好像一直都是黑夜(说错了别怪我),就算有白天,
外面也没什么好看的,如果出来去洗手间还得麻烦旁边人。座位很舒服,我这样19X的
身高可以把身体完全伸直睡觉。选座位没必要选第一排,第一排的空间不比后面大,除
非你急着到... 阅读全帖
g*****g
发帖数: 34805
12
来自主题: Programming版 - Re: java inner class - 初学者问 (转载)
This was not what I meant. Inner class is just inner class. Anonymous inner
class is just one of the kind. Basically there are 3 use cases of inner
class.
1. The class is simple and almost always created with the outer class, you
want a simple way to group these two classes. You can use a static public
inner class.
2. The class is never used outside of the outer class but you want to create
it in more than one places. private inner class is appropriate.
3. Same as 2 but you only need it in one p... 阅读全帖
Q**g
发帖数: 183
13
像是经典的Double dispatch pattern.
你大概是想 Dog process DogData, Cat process CatData; 当 Dog 遇上 CatData 或者
Cat 遇上 DogData 就用缺省的 Animal process AnimalData。试试
#include
class Animal;
class Data;
class Cat;
class CatData;
class Dog;
class DogData;
using namespace std;
class Data {
public:
virtual void process(const Animal* animal) const {
cout << "Default Data and Animal" << endl;
}
virtual void process(const Cat* animal) const {
process((const Animal*) animal);
}
... 阅读全帖
b********n
发帖数: 38600
14
`There’s been class warfare for the last 20 years, and my class has won’
By Greg Sargent
People obsessing over Warren Buffett’s comments on CNBC today are focusing
on the wrong Warren Buffett interview. These remarks from Buffett, on CNN
this morning, are far more significant:
QUESTIONER: Are you happy seeing your suggestion, this new Buffett Rule,
becoming more of a basis of a political battle that really has turned into
class warfare?
BUFFETT: Actually, there’s been class warfare going on for ... 阅读全帖
l****z
发帖数: 29846
15
By Jeremy Egerer
It is oftentimes complained, partially unfairly, that the American lower
classes are getting poorer and poorer. But enough has been written, by
practically every conservative think-tank, about how the welfare state and
anti-discrimination legislation destroy neighborhoods and promote the
business interests of those with poor moral constitutions (leftists,
primarily) by providing layabouts with an arsenal of unreasonable lawsuits.
This article, recognizing the above socioeconomi... 阅读全帖
W***n
发帖数: 11530
16
来自主题: Automobile版 - godvan class action suit - ok, 2011's
Honda Odyssey Torque Converter Class Action Lawsuit Complaint
on November 14, 2011
Honda Odyssey Model Year 2005 Through 2009 Purchasers & Lessees File Class
Action Lawsuit Complaint Against Honda Over Allegedly Defective Torque
Converters.
A class action lawsuit has been filed against American Honda Motor Co., Inc.
, Honda North America, Inc. and Honda Motor Company, Ltd. (“Honda Motor”
or “Honda” or “Defendants”) in the United States District Court for the
Central District of California (style... 阅读全帖
f********9
发帖数: 30
17
http://finance.yahoo.com/news/equity-alert-rosen-law-firm-22530
The Rosen Law Firm, a global investor rights firm, announces that a class
action lawsuit has been filed on behalf of purchasers of Celladon
Corporation (CLDN) common stock from July 7, 2014 through June 25, 2015, all
dates inclusive. The lawsuit seeks to recover damages for Celladon
investors under the federal securities laws.
To join the Celladon class action, go to the firm’s website at http://www.rosenlegal.com/cases-660.html or ... 阅读全帖
m******3
发帖数: 983
18
来自主题: SanFrancisco版 - 看看MIT2014 class statistics
看着有多少人可以告MIT
Applications:
- Total applications were up 6.2%, from 15,633 to 16,632. In a historical
context, the increase is incredible: in 2006, we had a mere 11,374
applicants.
- Our admit rate was 9.7%. That's down from 10.7% percent last year due to
increased applications with an inelastic class size, and predictions of
increased yield (more people who get in coming to MIT). In 2006, our admit
rate was 13.3%.
Demographics:
- Our incoming class is 53% male and 47% female. The male/female app... 阅读全帖
f*******n
发帖数: 12623
19
No, all generics are erased after compiling. There is no T. Anything you can
get you must get from stuff that you have at runtime.
Think about it, after type erasure your class looks like this:
public class GenericReflection
{
private Object object;
//---- get/set ---
public void setObject( Object v ){ object=v; }
public Object getObject(){ return object; }
//---- is it possible to get the class for the object? ----
public Class getObjectClass()
{
Class retval = null;

if... 阅读全帖
f*******n
发帖数: 12623
20
No, all generics are erased after compiling. There is no T. Anything you can
get you must get from stuff that you have at runtime.
Think about it, after type erasure your class looks like this:
public class GenericReflection
{
private Object object;
//---- get/set ---
public void setObject( Object v ){ object=v; }
public Object getObject(){ return object; }
//---- is it possible to get the class for the object? ----
public Class getObjectClass()
{
Class retval = null;

if... 阅读全帖
b******s
发帖数: 5329
21
Who is a Settlement Class Member?
You are a Settlement Class Member if you purchased or leased one of the
specific Subaru vehicles listed in the Settlement Class Notice, and you
purchased your vehicle in the continental United States of America (
including Alaska), as defined in the Settlement Class Notice mailed to Class
Members. These vehicles are identified in this document as “Class Vehicles
.”
6. What is offered under the Proposed Settlement?
The Proposed Settlement provides a number of ben... 阅读全帖
p*********r
发帖数: 40
22
假设有个base class叫Animal
derived class包括Cat,Dog等等
class Cat: public Animal {
...
};
现在希望在Animal里定义一个成员函数,比如叫processData
其作用是处理一些各种动物共通的数据,比如身高体重之类的
其输入是AnimalData这个class的object,当然身高体重什么的都是AnimalData这个
class的member variable
而在Cat这个class里,希望有一个overriden的processData函数,处理身高体重加上其
他一些cat特有的数据,比如胡须长度,这些数据都是CatData这个class的member
variable,当然,CatData是AnimalData的 derived class
现在问题是一般怎么设计这个base class Animal和derived class Cat?
假如把processData的输入参数设为AnimalData类型的reference,那么Cat的
processData就不能用CatData类型的referenc... 阅读全帖
L*****r
发帖数: 722
23
来自主题: MedicalCareer版 - CMD are always regarded as 2nd class MD(2)?
(1)【 在 add789 (*-*) 的大作中提到: 】
去察下harvard, yale,columbia 附属的教学医院,你可以看到不少CMG的attendings,
包括做surgical specialty的.难道他们/她们不比大多数的AMG好?
我个人认识的就不少。当然你可以说,CMG总体上的胜出率还是不如AMG,这我也承认。
但是要看到CMG attending 在first class 医院里的增长趋势。如果越来越多的CMG把
自己的努力目标定在first class医院,那么这个胜出率就会越来越多。
(2)我觉得更重要的问题是,first class医院的医生,就一定是first class 的医生
吗?
我认为不一定。我在国内,算得上是first class医学院毕业,在first class医院一直
做到主治;在这边的residency training program 虽然算不得first class,但也在
first class 医院里轮转,所以还算有些实际经历。我觉得first class医院的医生,
并非想当然的一定就是first class的医生。理由
B**W
发帖数: 2273
24
来自主题: USANews版 - The Middle-Class Agenda
NYT Editorial
The Middle-Class Agenda
Earlier this month, President Obama delivered his first unabashed 2012
campaign speech. Unlike his opponents, Mr. Obama acknowledged the ravages of
income equality, the hollowing out of the American middle class. There is
no hyperbole in the urgency he conveyed about “a make-or-break moment for
the middle class, and for all those who are fighting to get into the middle
class.”
The challenge for Mr. Obama is to translate the plight of the middle class
into an... 阅读全帖
K******g
发帖数: 1870
25
今天面试被问到template class怎么处理Inheritance问题,我没有答上来,觉得
template class处理inheritance应该与普通的class没有什么区别。
放下电话后,在effective C++的item43里找到了,derived class cannot inherit
public functions from the base class, we need use this->, or using to use
public functions from the base class in the derived class.
但是,我写了个程序, derived class still can inherit public functions from
the base class.(用的是g++编译器)
请问C++的大牛们,到底哪个对啊?难道这种东西是compiler dependent的?
还有这个面试题应该怎么回答呢?多谢了
g*****g
发帖数: 34805
26
来自主题: Java版 - 感觉inner class挺好用的
这是我以前发过的帖子。
Basically there are 3 use cases of inner
class.
1. The class is simple and almost always created with the outer class, you
want a simple way to group these two classes. You can use a static public
inner class.
2. The class is never used outside of the outer class but you want to create
it in more than one places. private inner class is appropriate.
3. Same as 2 but you only need it in one place, anonymous inner class is
appropriate.
l**********o
发帖数: 22
27
来自主题: Programming版 - 请教一个class design的问题
我现在有一个比较大的class structure大致是这样的
A (abc)
|
B
/ \
C D
/ \ |
E F G
/ \ |
H I J
现在要做一个新的class,从project的概念上讲是和class B大概是类似eclipse和
circle的关系,但是就具体内容而言,也就是里面的一小部分function不一样,但是
new class其他大部分function和B 一样,它的derive结构也一样,只是它的相对应的
derived class也和B 的每一个derived class几乎一样只有少部分function不同。 在
这种情况下,我该怎么设计这个new class呢?我也不想把大段的code直接copy,但又
想不出怎么安排这个new class和现有class,有经验的请指点一下,谢谢!
d****p
发帖数: 685
28
来自主题: Programming版 - class impl
I recently got confused about one thing.
Previously I have class design as:
class IFoo { ... } // abstract class
class Foo1 : public IFoo { ... }
class Foo2 : public IFoo { ... }
Recently all the code was modified by a colleague as:
class IFoo { ... }
class Foo1 { Impl *pImpl ... }
class Foo1::Impl { ... }
In short, the implementation was moved from Foo to Foo::impl, which
is an internal class.
What's the benefit of doing so? To me this is not nice since Foo is
suppose to be implementat
w*******y
发帖数: 60932
29
Overview Of the Proposed Settlement
Hartless v. Clorox Company, Case No. 06-CV-2705 CAB
A proposed settlement has been reached in a class action lawsuit about
Clorox Automatic Toilet Bowl Cleaner with Bleach (CATBC) and Cloroxs claim
that CATBC does not harm plumbing. Each package of Clorox Automatic Toilet
Bowl Cleaner with Bleach ("CATBC" or "Drop-In Tablets") states that the
toilet cleaner "does not harm plumbing." Plaintiff claims that this
statement is deceptive. Plaintiff claims that the c... 阅读全帖
f******t
发帖数: 7283
30
之前说到E class设计主要用途是出租车这一点,在很多方面都体现出来。换挡杆那是
一个典型例子了。现在来说一说后备箱。
这里可以比较各车型的数据:
http://www.mbusa.com/mercedes/vehicles/compare/category-OVERVIE
这里列举一下这个级别车子的后备箱容积(cu-ft):
E350:15.9;
GS350:14.3;
535i:14.0;
A6:14.1;
可以看到当其它竞争对手的后背箱还在14 cuft出头这个范围内挣扎的时候,E350就已
经差不多高达16 cuft了。不单止跟同级别相比E class的后背箱出奇地大,甚至跟大型
轿车相比E class的trunk还是巨大的,比如说长轴距S class也才16.4 cuft;而A8则是
仅仅有13.2 cuft,所以毫不夸张地说:E class这个神奇的后背箱甚至比大型轿车A8还
要大得多。
E class这个硕大后备箱的代价就是把后座往前推,所以副作用很明显:这车子后座脚
部空间狭窄,这是后座Leg Room数据(英寸):
E350:35.8;
GS350:36.3;
53... 阅读全帖
m*****6
发帖数: 265
31
是在选择TB classification里面选的
选项有 NoClassA or Class B
Class B1 Pulmonary TB
Class B2 Pulmonary TB
Class B, Other Chest
Class A Pulmonary TB Disease
Class B1 Extra Pulmonary TB
Class B, Latent TB Infection
选择了Class B, Latent TB Infection.
在Remark里面写的是Follow up with health department,
不知道要不要重新找个中医做一下?谢谢
p********g
发帖数: 366
32
【 以下文字转载自 FleaMarket 讨论区 】
发信人: pingyawang (Yaping), 信区: FleaMarket
标 题: 【出售】Handgun License Class at Houston @ $50
发信站: BBS 未名空间站 (Thu Oct 20 14:02:03 2011, 美东)
我想卖的物品:
Concealed Handgun License Class Voucher at Houston
单张面值:
150
可接受价格(必须明码标价!):
50
邮寄方式要求:
Email to you Pick up
买卖双方谁承担邮寄损失(Required if not code only):
default
付款方式说明:
BOA online/counter transfer
Chase QuickPay
non CC PayPal
其他补充说明:
广告的有效期:
Till Gone
物品来源(Required for All Cards!):
Living Social
我的联系方式:
PM
Warranty期限:
能否证明是合法的一手卡?... 阅读全帖
p********g
发帖数: 366
33
【 以下文字转载自 FleaMarket 讨论区 】
发信人: pingyawang (Yaping), 信区: FleaMarket
标 题: 【出售】Handgun License Class at Houston @ $50
发信站: BBS 未名空间站 (Thu Oct 20 14:02:03 2011, 美东)
我想卖的物品:
Concealed Handgun License Class Voucher at Houston
单张面值:
150
可接受价格(必须明码标价!):
50
邮寄方式要求:
Email to you Pick up
买卖双方谁承担邮寄损失(Required if not code only):
default
付款方式说明:
BOA online/counter transfer
Chase QuickPay
non CC PayPal
其他补充说明:
广告的有效期:
Till Gone
物品来源(Required for All Cards!):
Living Social
我的联系方式:
PM
Warranty期限:
能否证明是合法的一手卡?... 阅读全帖
p******o
发帖数: 2682
34
来自主题: NCAA版 - 我狮2014 CLASS分析总结
我狮最近3个CLASS(2012、2013、2014)个个有事,真可谓多事之秋。2012的CLASS遇
上SCANDAL,JOE PA被FIRE;2013的CLASS遇上NCAA SANCTION;2014的CLASS遇上O'
BRIEN跳槽,FRANKLIN加盟。在这样的非正常情况下,评价CLASS的好坏多了不少变数。
刚签完的这个CLASS,考虑各种情况,我认为可以打A。如果能留住HOLLEY,或者挖来
NICHOLSON这样的孩子,就可以打A+了。具体分析如下:
1、人招满了。这是我认为今年的CLASS最成功的地方。由于受罚,我狮人员奇缺,2013
赛季SPECIAL TEAM全都是WALK-ON,TALENT差距太大,根本没法搞。所以今年足足把25
个名额(20个名额 + 5个EARLY ENROLL,没用GRAY SHIRT)用满是非常关键的,能够尽
可能快的弥补人员的缺口,整体提升DEPTH。
2、补充了我狮目前最大一短板,就是防守后场TALENT和速度匮乏。防守后场包括两个
DB和两个SAFETY,人数很多。而目前我狮的队伍里,我个人认为只有2-3个人够得上BIG
-10... 阅读全帖
p*a
发帖数: 592
35
来自主题: Java版 - Re: abstract classes GRAPHICS
I think you haven't fully understood abstract
class yet. You can't instantiate an abstract
class, which means you can't use new MyAbstractClass()
to create an instance. But that doesn't prevent
you from instantiate a subclass(which is concrete)
of the abstract class. A simple example will show
the advantage of having an abstract class:
abstract class MyAbstractClass { ... }
class MyConcreteClass1 extends MyAbstractClass { ... }
class MyConcreteClass2 extends MyAbstractClass { ... }
class Test
l*******w
发帖数: 61
36
见 //Q:处。
我想不出什么高招可以完成 getObjectClass() ... 惭愧。。。也许是做不到的?
请教各位高见。谢谢。
------------------------------
public class GenericReflection
{
private T object;

//---- get/set ---
public void setObject( T v ){ object=v; }
public T getObject(){ return object; }

//---- is it possible to get the class for the object? ----
public Class getObjectClass()
{
Class retval = null;

if( object!=null ) retval = (Class) object.getClass();
else
{
//Q: can the class ... 阅读全帖
l*******w
发帖数: 61
37
见 //Q:处。
我想不出什么高招可以完成 getObjectClass() ... 惭愧。。。也许是做不到的?
请教各位高见。谢谢。
------------------------------
public class GenericReflection
{
private T object;

//---- get/set ---
public void setObject( T v ){ object=v; }
public T getObject(){ return object; }

//---- is it possible to get the class for the object? ----
public Class getObjectClass()
{
Class retval = null;

if( object!=null ) retval = (Class) object.getClass();
else
{
//Q: can the class ... 阅读全帖
s******e
发帖数: 493
38
来自主题: Java版 - inner class 让认糊涂
four types:
static inner class: really should not be called inner class, especially
public one. I hardly find it useful But I did see somebody uses it to
emphasize the domain relationship.
inner class: mostly be used for event listeners or for limiting publication
scope to the enclosing class. Occasionally it might escape from class scope.
method local inner class: never use it. you use it when you really want to
limit it's life scope. It is the preferred question for an interview: about
what ki... 阅读全帖
x*****g
发帖数: 764
39
来自主题: Java版 - How to use classes in a jar file?
再来问问大小牛们。
我从来没有制作过jar文件,但用过很多别人做的,从来没问题。但是今天自己做了一
个,但是怎么也不行。具体是这样的。
1. 一个月前, 我写了一个程序A作计算。这个程序包括几个classes,都属于default的
package.
2. 这两天又写了一个程序B,也包括几个classes,都属于一个package叫做“
DataManagement”.
3. 今天想把程序A的功能包含在程序B中,于是就把A中的所有的classes放进一个jar文
件叫做“myjar.jar”。这个jar文件本身表面上看不出问题,能够解压。
4.在eclipse里通过"Add External Jars"把“myjar.jar”加入程序B的library里,这
样project的build path里就有了。我以前也是一直这样用别人的jar文件的,从来没有
问题。
5. 在程序B中准备引用“myjar.jar”中的classes,但是不成功,编译总是出错,就是
不能识别class。
6. 然后又又写个小程序C来测试。程序C中的classes都属于default的package。在程序
C... 阅读全帖
d****i
发帖数: 4809
40
一般的普通的class,可以通过MyClass.class得到,但是如果有Generics的情况,由于
type erasure,就没法得到它的class,比如我想用List.class,就会报错,
但是有些class method只接受这样的input argument:
public void foo(Class class)
如果我想传入一个List的类的话,怎么办?没法用
foo(List.class)
w*******y
发帖数: 60932
h*********r
发帖数: 650
42
来自主题: _Climbing版 - Class System
The Class System (Sierra Club System and Yosemite Decimal System) describes
hike and rock climbing difficulty. The Sierra Club System describes hikes
of Class 1 through 4, and the YDS adds Class 5 and 6 to describe rock climbs.
Class 1: Hiking on trail
Class 2: Hiking off trail
Class 3: Scrambling. Will require the use of hands, typically for balance.
Class 4: Basic rock climbing. Will require the use of hands for balance and
forward movement. Beginners will want a rope belay.
Class 5:
r*******g
发帖数: 5495
43
Here's how much you have to earn to be considered upper class
http://www.msn.com/en-us/money/personalfinance/heres-how-much-you-have-to-earn-to-be-considered-upper-class/ar-BBysfNB?ocid=spartanntp
The research group found that "nationwide, the median income of U.S.
households in 2014 stood at 8% less than in 1999, a reminder that the
economy has yet to fully recover from the effects of the Great Recession of
2007-2009."
Despite this drop in income, members of the upper class are still doing well... 阅读全帖
u***r
发帖数: 4825
44
https://komonews.com/news/local/uw-suspends-classes-finals-on-campus-
starting-monday
https://q13fox.com/2020/03/06/university-of-washington-employee-tests-
positive-for-coronavirus-classes-to-be-taught-remotely-starting-monday/
Friday, March 6th 2020
SEATTLE - No classes or finals at the University of Washington will take
place at any of its three campuses for the remainder of the winter quarter,
effective Monday, after a staff member tested presumptive positive for
coronavirus, UW officials an... 阅读全帖
t********i
发帖数: 7856
45
来自主题: Automobile版 - 全新一代 C-Class (W205) 四门轿车
zt from bestmotoring.cn
奔驰将在下月开幕的北美车展正式发布全新一代 C-Class (W205) 四门轿车,新车的官
图及视频亦於今天发放。2015款奔驰 C-Class 将提供 “AVANTGARDE” 、“EXCLUSIVE
” (立式车标) 以及 “AMG Line” 三个系列,动力配置方面提供多款汽油和柴油引擎
,稍后还会提供全新 3.0L V6 Hybrid 油电混合动力引擎 (C300 BlueTEC Hybrid ,百
公里油耗低至3.9升) ;传动系统皆为 7G-tronic Plus 七前速自动波箱,除传统后驱
车型外,还会提供装备 4-Matic 四驱系统的型号。在车身尺寸方面,2015款奔驰 C-
Class 的轴距长度较现款车型加长了80mm,车宽也增加了40mm;基于轻量化材料的运用
,车身重量比现款车型大幅减轻100kg,油耗方面亦因此降低了20%。此外,新一代奔驰
C-Class 还是同级别轿车中首款装备空气悬挂系统 (选装件) 的车款,HUD 抬头显示
、LED 智能灯光系统、Touchpad 手写触摸板、柏林之声高级音响系统、香... 阅读全帖
V****r
发帖数: 925
46
2015款的奔驰C-Class (W205) 是一款操控不如Accord、空间不如Accord、可靠性不如
Accord、保值度不如Accord的样子货。
怎么说呢。。。大家都知道,比CRV轻了整整300镑的 2015奔驰gla-class (X156) 是公
认的一辆综合评价连Fit都不如的基于A-Class的拉皮mini station wagon,不论是操控
还是空间还是安全性都是同级别最烂,更不用说可靠性和保值度了。。。
然后呢,这2015款的C-Class竟然比gla这拉皮的A-Class还要轻、还要偷工减料:
New Mercedes-Benz C-Class W205 is Lighter Than a GLA X156
http://www.autoevolution.com/news/new-mercedes-benz-c-class-w20
还有什么需要多说的么?
p********g
发帖数: 366
47
我想卖的物品:
Concealed Handgun License Class Voucher at Houston
单张面值:
150
可接受价格(必须明码标价!):
50
邮寄方式要求:
Email to you Pick up
买卖双方谁承担邮寄损失(Required if not code only):
default
付款方式说明:
BOA online/counter transfer
Chase QuickPay
non CC PayPal
其他补充说明:
广告的有效期:
Till Gone
物品来源(Required for All Cards!):
Living Social
我的联系方式:
PM
Warranty期限:
能否证明是合法的一手卡?(Required for All Cards!):
state and zip:
Houston, TX
A Voucher for a Concealed Handgun License. It cost more than $150, and
I
bought it at $65, Now I am selling i... 阅读全帖
l*******y
发帖数: 1498
48
来自主题: JobHunting版 - 问一个c++ virtual base class的问题
If you inherit a base class as virtual, only one subobject of that class
will ever appear as a base class. 下面这个例子:
#include
#include
using namespace std;
class MBase {
public:
int i_base;
virtual char* vf() const = 0;
virtual ~MBase() {}
};
class D1 : virtual public MBase {
public:
char* vf() const { return "D1"; }
};
class D2 : virtual public MBase {
public:
char* vf() const { return "D2"; }
};
// MUST explicitly disambiguate vf():
class MI : public D1, public D2 {
w******j
发帖数: 185
49
来自主题: JobHunting版 - bst中序遍历c++ class iterator
来个java的吧,带parent pointer和不带的,preorder和inorder的
import java.util.NoSuchElementException;
import java.util.Stack;
public class BST {
private Node root;
private static class Node {
int key;
Node left, right, parent;
Node(int key) {
this.key = key;
}
}
public BST(){

}

public BSTIterator inorderIterator() {
return new InorderIterator();
}
public BSTIterator preorderIterator() {
return new PreorderI... 阅读全帖
r***l
发帖数: 593
50
【 以下文字转载自 I485 讨论区 】
发信人: royal (royal), 信区: I485
标 题: 刚看到一个很奇怪的关于Class of Admission的解释
发信站: BBS 未名空间站 (Thu Nov 29 14:22:43 2012, 美东)
发信人: noles (mileman), 信区: EB23
标 题: 班主。 请顶置Class of Admission
关键字: Class of Admission
发信站: BBS 未名空间站 (Fri Dec 16 10:32:07 2011, 美东)
很多人对Class of Admission不知怎么填:
正确是:your current status.
http://www.murthy.com/news/UDclaadm.html
"Class of Admission Defined by USCIS
Posted Mar 19, 2004
We have recently had a number of clients, as well as MurthyDotCom and
MurthyBull... 阅读全帖
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)