Here's an alternate design suggestion:
public interface IBook
{
string book(string t, string g, int p, int page);
}
interface IMovie
{
string movie(string t, string g, int p, double l);
}
public abstract class saker
{
public string titel;
public string genre;
public int pris;
public abstract string visainfo();
}
public class Book : saker, IBook
{
public override string visainfo()
{
throw new NotImplementedException();
}
public string book(string t, string g, int p, int page)
{
throw new NotImplementedException();
}
}
public class Movie : saker, IMovie
{
public override string visainfo()
{
throw new NotImplementedException();
}
public string movie(string t, string g, int p, double l)
{
throw new NotImplementedException();
}
}