I've got a somewhat primitive framework I've been using for most of my projects, but a general design issue came to mind that I haven't been able to work out yet. For a given application, should I separate the application-specific class structure from the framework's structure, or is buliding on top of the framework not such a bad thing?...
The current class library I am working on will have a base class (Field) with over 50 specific "field" types which will inherit from "Field" and nested for maintain readability. For example...
abstract class Field
{
public int Length { get; set; }
public class FieldA : Field
{
public static void DoSomething()
...
Hello,
I'd like to output (programmatically - C#) a list of all classes in my assembly.
Any hints or sample code how to do this? Reflection?
...
if "attribute" is true do this "operation" else do nothing.
How do i show this in uml class diagram.
Thank you,
kim
...
I am creating a class that can inherit properties from all its super-classes. That's all nice and standard but I have a unique problem of the lowest subclass needing to inherit from different superclasses that all inherit from the same superclass while only being able to inherit from one class depending on the current setup of the system...
Basically I want to know why this works:
class MyClass:
pass
myObj = MyClass()
myObj.foo = 'a'
But this returns an AttributeError:
myObj = object()
myObj.foo = 'a'
How can I tell which classes I can use undefined attributes with and which I can't?
Thanks.
...