object-oriented-analysis
Superclass has subclass reference
I have a situation where I have to put getters and setters for a sublass reference in superclass. I just need to know whether its a good practice or not?[详细]
2023-04-10 04:32 分类:问答subtyping relationships in OO paradigm
Let us consider a class \'Human\' -->(1..*) \'Human\' , where Human is a supertype. Say it has subclasses like \'Male\', \'Female\', \'SociallyPathologicalMale\' etc. The basic association b/w 2 entit[详细]
2023-03-31 03:30 分类:问答How to Store a list of Design-Time data
I have the following structure in my data: Category0 -SubCategory0 -SubCategory1 -SubCategoryN Category1[详细]
2023-03-27 06:19 分类:问答what is the common practice on doing oo in db?
Here is situation.... ... I have a DBManager, which is implement a DBInterface, in the DBInterface, I got 4 method:[详细]
2023-03-23 13:32 分类:问答Head First Design Patterns vs Head First Object Oriented Analysis and Design [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.[详细]
2023-03-21 03:21 分类:问答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 design pattern to use when I want only some derived classes to have access to a method in base class?
I have a unique problem/situation here. Trying to make it as simple as possible. I have a base class (say Parent) and a whole bunch of derived classes (say Child1, Child2 ..ChildN) directly deriving f[详细]
2023-03-19 05:39 分类:问答Class methods vs instance methods
Hi Are class methods generally me开发者_C百科asured to be faster than instance methods since it doesn\'t require loading an instance? If so, should we use class methods when possible?[详细]
2023-03-17 03:04 分类:问答Is there any use of making an array final (immutable) in Java?
Is there any reason why one would declare a array开发者_高级运维 final? say something like this[详细]
2023-03-16 21:08 分类:问答Tools for visualizing, understanding how your classes relate to one another
At times I find myself struggling to navigate the object landscape of a large, legacy system having 100+ classes.[详细]
2023-03-13 15:40 分类:问答