j*i
2 楼
I have the following classes: Atom, Molecule (contains atoms). I also have
the CoordinatedAtom class
which derives from Atom and contains position information. My
CoordinatedMolecule class should derive
from Molecule, but needs to contain CoordinatedAtom, instead of Atom. How
should I write the
CoordinatedMolecule class? I think this might be a common design problem.
What I'm thinking is that
whether I could define a member variable in CoordinatedMolecule that has the
same name as the base
class
the CoordinatedAtom class
which derives from Atom and contains position information. My
CoordinatedMolecule class should derive
from Molecule, but needs to contain CoordinatedAtom, instead of Atom. How
should I write the
CoordinatedMolecule class? I think this might be a common design problem.
What I'm thinking is that
whether I could define a member variable in CoordinatedMolecule that has the
same name as the base
class
D*a
4 楼
use template
Molecule
Molecule
the
【在 j****i 的大作中提到】
: I have the following classes: Atom, Molecule (contains atoms). I also have
: the CoordinatedAtom class
: which derives from Atom and contains position information. My
: CoordinatedMolecule class should derive
: from Molecule, but needs to contain CoordinatedAtom, instead of Atom. How
: should I write the
: CoordinatedMolecule class? I think this might be a common design problem.
: What I'm thinking is that
: whether I could define a member variable in CoordinatedMolecule that has the
: same name as the base
Molecule
Molecule
the
【在 j****i 的大作中提到】
: I have the following classes: Atom, Molecule (contains atoms). I also have
: the CoordinatedAtom class
: which derives from Atom and contains position information. My
: CoordinatedMolecule class should derive
: from Molecule, but needs to contain CoordinatedAtom, instead of Atom. How
: should I write the
: CoordinatedMolecule class? I think this might be a common design problem.
: What I'm thinking is that
: whether I could define a member variable in CoordinatedMolecule that has the
: same name as the base
K*n
8 楼
是不是要练到programming版的问题都能答出来才行?
l*g
9 楼
我是CS的
但是我想在本校修一个统计的master........
但是我想在本校修一个统计的master........
相关阅读
有尝请教关于spark api java coding (转载)数学不好编程不行张口闭口AI咋搞请推荐java 机器学习库 。。。本站是不是被牙膏厂的补丁影响了?碧海银沙javascript editor的問題多大的比例算imblanced?请问xgboost训练需要保持不同类别样本数尽量一致吗?FP over head很高坑:这波fp scala 算是赢了吧买了个$300的serverDS面试一定要弄清楚sqrt(N)和sqrt(T)求教 xgboost train error 非常小,咋回事K8s的网络配置问题[bssd]AI 实为computer science第2大分支?记错了,是墨登时代,大数据也不来纠正一下卫东 问你 不会Java 如何生存?两个电脑之间的Java程序怎么方便传输简单的数据?150行 F# 做矩阵运算比MKL还快Python是啥时候普及的?