Theese are my classes:
class Reply {
}
class VotableReply : Reply {
}
class Question : VotableReply {
}
class Answer : VotableReply {
}
class Comment : Reply {
}
Now, I want to add new class which will be common to Comment
and Answer
. But I cant really do that, because Answer
and Question
has common ancesor.
I think graph is easier to visualize problem
So, is there any way to add new class without using interfaces?