Using system;
Namespace pattern {///
}
Public interface fruit {string grow (); string water ();
}
Public Sealed Class Apple: Fruit {Public Apple () {Return "this is apple result";} public string water () {return "this is apple water";}}
Public Sealed Class Orange: Fruit {public Orange () {} public string growth () {Return "this is orthol";} public string water () {return "this is oory water";}
}} // Simple Factory Mode Console.writeline (Factory.made (1) .grow ()); console.writeline (factory.made (2) .grow ());