E
ernesto basc?n pantoja
Hi everybody:
I'm implementing a general C++ framework and I have a basic question
about circular dependencies:
I am creating a base class Object, my Object class has a method
defined as:
virtual String toString();
where String is defined as:
class String : public Object
This is similar to the Java or .NET Object class implementation, but
it
is not a good OO design because the circular dependency between my
Object and my String classes.
There are another ways to implement this functionality without having
circular
dependencies?
Best regards
ernesto
I'm implementing a general C++ framework and I have a basic question
about circular dependencies:
I am creating a base class Object, my Object class has a method
defined as:
virtual String toString();
where String is defined as:
class String : public Object
This is similar to the Java or .NET Object class implementation, but
it
is not a good OO design because the circular dependency between my
Object and my String classes.
There are another ways to implement this functionality without having
circular
dependencies?
Best regards
ernesto