class Test {
public Test(string name, string age) {
}
}
interface ITest
????????
class Example: ITest {
public Example(/* ... */) {
}
}
So what should I use in my interface to use the same parameters in my example as in test?
What I want to do:
I have 3 classes:
a
,b
andc
.I want my
c
to inherit from botha
andb
.
But C# doesn't let you do that ... So I want to use an interface.
EDIT My classes are:
- Student(name, age, studies)
- Teacher(name, age, classes)
- Working Student/Teacher(name, age, studied/classes, payment)
So i want to use methods in my working class from the other classes.