R
Rich P
How to implement these abstract classes?
abstract class Car
{
public abstract string Model { get; set;}
public abstract string Make { get; set;}
CarType carTypes { get; set;}
}
abstract class CarType
{
public abstract string twoDoor { get; set;}
public abstract string FourDoor { get; set;}
}
---------------------------------------------
I tried abstract class Car:CarType with no success.
{
...
}
Then I want to derive a class from these 2 abstract classes. What is
the correct way to do this?
class myDerived:Car
{
...
}
Rich
abstract class Car
{
public abstract string Model { get; set;}
public abstract string Make { get; set;}
CarType carTypes { get; set;}
}
abstract class CarType
{
public abstract string twoDoor { get; set;}
public abstract string FourDoor { get; set;}
}
---------------------------------------------
I tried abstract class Car:CarType with no success.
{
...
}
Then I want to derive a class from these 2 abstract classes. What is
the correct way to do this?
class myDerived:Car
{
...
}
Rich