Beef
Beef copied to clipboard
Is is possible to instantiate a type which implements an interface but does not provide an implementation for abstract methods in the interface
This should probably be disallowed:
Example:
interface IDevice
{
abstract void Test();
}
class Device : IDevice
{
}
class Program
{
public static void CreateDevice(out IDevice device)
{
device = new Device();
device.Test();
}
}