interface as a return signature ?
Abejorro:
On my way to an interface-based-design I was stopped again:
What is the way to stay abstract beside ordinary return declaration ?
The Implementing-Class is senseless at that point.
You are returning an object, in such case the object to be returned must have a copy constructor and cannot be abstract.
Ex Ovo Omnia: You are returning an object, in such case the object to be returned must have a copy constructor and cannot be abstract.
| The alternative is to return a pointer to a base class (possibly an interface.) |
On my way to an interface-based-design I was stopped again:
What is the way to stay abstract beside ordinary return declaration ?
The Implementing-Class is senseless at that point.