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........
相关阅读
C*降低了big data的门槛了又看了一下go 感觉Java毫无压力语言会三个够了 多留点精力学操作系统 数据库 分布式系统吧不要再纠结哪门语言了Facebook bought Occulas如何设计一个支持 survey or questionnaire 的数据结构?又看了一下goHelp for a begginer making animation (转载)经典的Design Pattern in Java的书/资料问一个关于C×和HBASE的性能比较问题phpBB3自动注册how to read log files on a remote server with ssh?flmg之类的公司面试都是手写还是上机业余做些项目问一个python multiprocessing问题所谓FP就是 递归+pattern matching?Dart有前途吗?!请教改numpy array的dtype有谁能科普一下那些license对开发商业应用比较友好吗?谢谢OCR software to capture text on windows