I have an abstract class, let me call it Fruit.
There are two classes that come from Fruit, they will be called Apple and Pear.
I have a function that should return both apples and pears, for example, their expiration date.
It looks something like this:
public Fruit[] GetFruitByDate(string date){
Apple[] apples=;
Pear[] pears=;
return apples+pears;
}
How to return two results?
Thank.
source
share