class-design
c++ class member of same type
I have the following situation: clas开发者_开发问答s Foo { public: static const Foo memberOfFoo; ........[详细]
2023-04-04 04:37 分类:问答"Dumb" Wrapper class
I have a class, say Provider, that exposes its funcationality to the above service layers of the system. It has a pu开发者_C百科blic method, say GetX(). Now, there are two ways to get the X : XML way[详细]
2023-04-02 10:59 分类:问答Where should I release an object? Can it release itself?
I want to get friends information from Facebook and save it with Core Data. I build a FriendsManager Class that gets the a list of friends from Facebook (name and id)[详细]
2023-03-30 08:39 分类:问答Class interface design woes
I\'m having doubts about how to best construct the interface of a new class. There will be two other classes communicating with the new class, Platform and Sensor. The new class, Pathfinder, will reci[详细]
2023-03-29 04:20 分类:问答Critique of immutable classes with circular references design, and better options
I have a factory class that creates objects with circular references. I\'d like them to be immutable (in some sense of the word) too. So I use the following technique, using a closure of sorts:[详细]
2023-03-27 18:13 分类:问答Instantiating each of the two classes in one another
I have a C# class question which I hope to get some help with.I have one class called CountdownUserControl.There are a number of functions within this class.I then have another class called Min.There[详细]
2023-03-27 05:30 分类:问答PHP class with property which can be either an int or an array
I have a class (say Product) with a property (say product_id) and has methods to retrieve information from multiple database tables for given product ID. Now I want the class methods to handle one pro[详细]
2023-03-27 04:35 分类:问答Fatal error while loading class EWSType_FindItemType (php-ews)
I\'ve never really had to play with classes but am looking to use php-ews on a page i\'m working on a开发者_开发百科tm.[详细]
2023-03-27 03:32 分类:问答How to emulate __destruct() in a static class?
I\'ve coded a simple configuration class for my own framework. There are simple functions like get(), set() or loadFile().[详细]
2023-03-27 00:13 分类:问答Adding function to string class
I understand that inheriting from std::string class is a poor idea, but was just trying to add a custom function to string class for a dummy assignment, using inheritance.[详细]
2023-03-26 04:01 分类:问答
加载中,请稍侯......