K
K Viltersten
I have:
abstract class Vehicle
{
public Vehicle (int i) {...}
abstract public void doMove ();
}
When i write the following:
class Car: Vehicle
magic happens and by pressing a key
combo, VS asks me if i want to extend
the abstract class.
I say, YES! And there it is - a stub
of a function already with "override"
and "throw this and that".
However, no constructor(s) is/are
created for me. Does it mean i need
not to implement those? In C++ i
needed to provide my own and make
them call the super class...
abstract class Vehicle
{
public Vehicle (int i) {...}
abstract public void doMove ();
}
When i write the following:
class Car: Vehicle
magic happens and by pressing a key
combo, VS asks me if i want to extend
the abstract class.
I say, YES! And there it is - a stub
of a function already with "override"
and "throw this and that".
However, no constructor(s) is/are
created for me. Does it mean i need
not to implement those? In C++ i
needed to provide my own and make
them call the super class...