简体   繁体   English

如何在代码块 IDE 中组织低级设计的类

[英]How to Organize the classes of a low level design in code blocks IDE

I am having an interview where I have to do low level design coding in an IDE which I have choosed to do in code blocks IDE.我正在接受采访,我必须在 IDE 中进行低级设计编码,我选择在代码块 IDE 中进行。 So I have question of how to organize different classes of that design.所以我对如何组织该设计的不同类别有疑问。 My point of asking is if I have 10 classes should I create all 10 different classes in a project by adding every time a new class.我要问的是,如果我有 10 个类,我是否应该通过每次添加一个新的 class 在一个项目中创建所有 10 个不同的类。 I think it would be bad approach.我认为这将是不好的方法。 So Is there any other approach to do so.那么有没有其他方法可以做到这一点。

If, in the program you're developing, classes interact with each other, they must to be in the same project.如果在您正在开发的程序中,类相互交互,它们必须在同一个项目中。
in a single project, you can and must have all the classes you need to instantiate the objects what you need in the program.在单个项目中,您可以并且必须拥有实例化程序所需的对象所需的所有类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM