class-design
Another problem-specific design question
Say I have a Ninja with certain configurable skills.By configurable, I mean the program reads in a configuration file and adds them in at runtime.ie:[详细]
2023-03-21 13:32 分类:问答Overriding a PHP __construct
I\'m currently using a constructor in my PHP class to check whether a user is logged in or not.The constructor calls a function to check if they have a session ID, etc. - and if they don\'t it redirec[详细]
2023-03-21 09:34 分类:问答Structure of PHP class, use static methods or not?
I am writing a custom domain-management class which uses various external services, sort of a wrapper class to make them work开发者_如何学运维 together.[详细]
2023-03-21 09:27 分类:问答php not throwing an Exception in function overriding
I have a class named DataBoundObject which is quite big. And works good. Its an ORM class i have developed. One of its functions is to automatically do the setXXX() and getXXX() functions so 开发者_JS[详细]
2023-03-21 09:25 分类:问答Appropriate access-level practices when breaking up large methods into smaller ones?
So I am a relatively new programmer and am still learning, and have run into a bit of an issue (so apologies if my tags are a little off).Early on I had a chance to read an article discussing the adva[详细]
2023-03-21 05:34 分类:问答Design a Student-Course-Teacher-Semester spreadsheet
Recently I was asked to design for curriculum application (in Jav开发者_JS百科a) model dealing with Student/Teacher/Semester/Course entities. It is something like spreadsheet design problem.[详细]
2023-03-21 03:14 分类:问答class diagram in OO programming with API
I am trying to create a class diagram for an application that I am trying to create within a given framework.[详细]
2023-03-20 01:25 分类:问答What is the best way to model multi-part questions
I am trying to design a subclass that will contain responses to multipart questions and some logic to evaluate/act on them.For example, FoodSurvey would be a subclass of BaseSurvey[详细]
2023-03-19 18:23 分类:问答What is considered good design for multiple similar classes
I am building an application that requires a number of subclasses (of Person) with similar properties (ex: Student, Teacher, Contact, User).There will be considerable overlap in properties, but also m[详细]
2023-03-19 05:47 分类:问答Design a Multidimensional Array in C++
I want to design a C++ class for multidimensional arrays. By multidimensional I mean 1d, 2d, 3d, etc. The class supports element by element addition and scalar multiplication operators. Assume A and B[详细]
2023-03-18 02:21 分类:问答