class-design
C++ Cache Design Advice
I have a c++ application with several image types(RGB, Gray...) and every type has properties like Rotation or Scale. Every image type is generated via some computation from the other types. For examp[详细]
2023-03-13 14:26 分类:问答Is it better to have standalone functions in globals or group them in a class?
I have inherited code in which there are standalone functions, one per country code. E.g. def validate_fr(param):[详细]
2023-03-13 14:07 分类:问答Name a class which contains other dependent classes [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing th[详细]
2023-03-13 11:13 分类:问答MVC3 - Where is UserId and Roles information
This is the Model code generated in MVC3 for Account/Membership class for a sample project I created. I do not see UserId field/attribute or Roles information..[详细]
2023-03-13 10:52 分类:问答Need advice with models - Post, Category, Tags
I want to create something like a blog. A Post must belong to a Category. Each Category has many Tags (or subcategories?). A post can have Tags (optionally).[详细]
2023-03-13 07:37 分类:问答How to decide if this should be split into 2 classes or kept in the same class?
I\'ve got a page with a list of some items. Each item has got some properties: comments, images, a title, a comments form, and content. It seems simple enough to create a class called item which will[详细]
2023-03-12 02:25 分类:问答Running class method in another class method
i would like to run a function method of a class inside another function method of another class. I wrote the following code as an example and it compiles and return the expected values. My question i[详细]
2023-03-11 12:24 分类:问答simple design problem : parent, child ; teacher,student
very simple problem, but i want to see how experts look at it. This is just imaginary software just to understand OOP.[详细]
2023-03-10 15:27 分类:问答Inventory design approach (inheritance vs generics)
Greetings! I am trying to decide on which is the best approach to implement a following scenario: Vehicle and Part are both \"entites\" which can be an Item in an Inventory.[详细]
2023-03-10 04:06 分类:问答C++ - Single local class instance for entire program duration
I\'m working on a lil\' game engine in C++, and decided to do it all OOPily (heavy use of classes.) It\'s intended to be (theoretically) cross-platform, so I have an \'Engine\' class, an instance of w[详细]
2023-03-09 22:34 分类:问答
加载中,请稍侯......