composition
Utility class for temporary error information storage?
I have been writing a light-weight framework to wrap the Windows API for personal projects and some fun. What I think is a good design method is that each class in the framework manages its own error[详细]
2023-03-08 03:40 分类:问答Is it possible storing drawn graphics into temp bitmap for later alpha composition on HTML5 canvas?
I\'m making some kind of UI layers with HTML5 canvas. All layers can开发者_C百科 be nested and can have alpha. Nested layers should be drawn with correct alpha composition. To do this, some kind of te[详细]
2023-03-07 10:33 分类:问答UML association vs. composition and detail level
Actually, make that a couple of amateur UML questions! When creating a UML diagram to model some domain concepts and you come across a domain concept that \"holds\" some information about another conc[详细]
2023-03-07 08:07 分类:问答Calling a method from an owned object on the owner
I have a table view class called RootViewController and a class providing WiFi functionality called WifiClass. When I load the RootViewController class, I am calling a method named setup on WifiClass,[详细]
2023-03-07 06:03 分类:问答Do I have the correct understanding of composition
From what I read composition is when one object depends on another to exist. For example a tail cannot exist with out a dog.Also, would it 开发者_运维知识库still be considered composition if I had a t[详细]
2023-03-05 23:50 分类:问答Composition, how do you know when to stop? [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[详细]
2023-02-27 02:30 分类:问答How to express 2n as sum of n variables (Java implementation?)
I wonder if there is an elegant way to derive all compositions of 2n as the sum of n non开发者_Python百科-negative integer variables.[详细]
2023-02-26 06:20 分类:问答Dereferencing syntax in copy constructor for class that contains other objects
Suppose the class MyClass has constructor: MyClass::MyClass( ... ) { var = new OtherClass( ... ); } and suppose the class OtherClass has copy constructor:[详细]
2023-02-25 19:23 分类:问答How can I change part of the composition in MEF after composition?
I\'ve setup my app to have a discoverable security service (ISecurityService) which has a single method IPrincipal GetPrincipal(). Implementers are free to then decide how to get the principal (via do[详细]
2023-02-25 09:26 分类:问答Should I extend an ArrayList (is-a) or should I include it as a member (has-a)?
I\'m making a simple program that maintains a list of numbers, and I want this list to also have a name.Which is the best approach: have my list class extend ArrayList or have it include an ArrayList[详细]
2023-02-17 00:28 分类:问答
加载中,请稍侯......