Top "Class-design" questions

Refers to structural definition of class unit in object-oriented languages.

new types may not be defined in a return type - C++

I am confused I think on C++ class structure. I have a .h called FxMathFunctions.h and a .cpp called …

c++ class-design compilation
When/why to make function private in class?

When should i make a function private and why is it good idea?

c++ oop class-design private-methods
How many constructors should a class have?

I'm currently modifying a class that has 9 different constructors. Now overall I believe this class is very poorly designed... so …

class-design constructor
Class prototyping

I have put several instances of class b in class a but this causes an error as class a does …

c++ prototype class-design
Is UML practical?

In college I've had numerous design and UML oriented courses, and I recognize that UML can be used to benefit …

uml class-design diagram
How can a singleton class use an interface?

I read at many places that singletons can use interfaces. Some how I am unable to comprehend this.

java interface singleton class-design
Java: Return class (Not an instance)

Is it possible to return in a static method a class? I will explain... I have: public class A { public …

java static class-design return-value
Ruby - share logger instance among module/classes

Working on a little Ruby script that goes out to the web and crawls various services. I've got a module …

ruby logging class-design
How can I determine whether a Delphi object is of a specific class and not any descendant class?

I have these classes and a procedure: TParent = class(TObject); TChild1 = class(TParent); TChild2 = class(TParent); Procedure DoSomething(obj:TParent); …

delphi class-design