P
PepsiDrinker
Hello! :^)
I am trying to implement a class library for dealing with time series.
I have to use time series with seasonable component and without it.
Also, time series can be stored in memory or in a database.
The problem is to make 4 following classes:
1. non-seasonable and storable in memory
2. seasonable and storable in memory
3. non-seasonable and storable in database
4. seasonable and storable in database
In C++ this problem could be solved by using multiple inheritance. But
I can't inherit class more than from one class in C# and, if I use
interfaces I must write the same implementation of abstract members
myself. For example, if I make an interface ISeasonable, I will need
to write the same code for in-memory and database-storable time
series.
Please, help me to implement my task in C# (if it is possible)
Thanx for attention
I am trying to implement a class library for dealing with time series.
I have to use time series with seasonable component and without it.
Also, time series can be stored in memory or in a database.
The problem is to make 4 following classes:
1. non-seasonable and storable in memory
2. seasonable and storable in memory
3. non-seasonable and storable in database
4. seasonable and storable in database
In C++ this problem could be solved by using multiple inheritance. But
I can't inherit class more than from one class in C# and, if I use
interfaces I must write the same implementation of abstract members
myself. For example, if I make an interface ISeasonable, I will need
to write the same code for in-memory and database-storable time
series.
Please, help me to implement my task in C# (if it is possible)
Thanx for attention