12 lines
280 B
C#
12 lines
280 B
C#
namespace MullItOver;
|
|
|
|
public abstract class Instruction {};
|
|
|
|
class MulInstruction(int multiplicandOne, int multiplicandTwo) : Instruction
|
|
{
|
|
public int Execute() => multiplicandOne * multiplicandTwo;
|
|
}
|
|
|
|
class DontInstruction : Instruction;
|
|
|
|
class DoInstruction : Instruction; |