1990mayurpatel
asked on
Is the following class declaration valid?
public abstract class BaseItem<TType,TKeyType> : BaseItem
where TType : BaseItem <TType,TKeyType>
Thank you
where TType : BaseItem <TType,TKeyType>
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
My displaying the output has nothing to do with the class declaration. I displayed output to show that the child object accesses the properties as defined in the base object.
Perhaps I should ask what your end goal is? What are your specification needs?
-saige-
Perhaps I should ask what your end goal is? What are your specification needs?
-saige-
ASKER
Basically the question I was given was set out like this:
Is the following class declaration valid?
There is no output of anything. I think it just wants to know if valid.
Is the following class declaration valid?
public abstract class BaseItem <TType,TKeyType> : BaseItem
where TType : BaseItem <TType,TKeyType>
There is no output of anything. I think it just wants to know if valid.
When you say things like, "the question I was given...", it makes it sound like a school exam. We are not allowed to give you specific answer to school exams. Is that what this is?
ASKER
It is for university but it is a mock quiz. I have figured it out by the way.
ASKER