usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceconsoleapplication1{classProgram {Static voidMain (string[] args) {Console.read (); } /// <summary> ///boss, can not work, is not the development of software///for the boss, he doesn't know how to do the project.///He just tells people that I'm going to develop the software to do the project./// </summary> Abstract classBoss { Public Abstract voidDoprogram ();//do the project } /// <summary> ///programmers who are really being squeezed by the bottom/// </summary> classProgrammer: Boss { Public Override voidDoprogram ()//do the project { //Specific Implementation Development } } /// <summary> ///investors don't know the existence of programmers .///an investor (someone who wants to do something and not do it.) Someone tells the investor who can do the project, the investor does not care who will do it and only cares about having the item to get the hand. /// </summary> classInvestment Party { PublicThe boss the boss invests in;//boss Role Public voidSetacompany (boss who won the bid)//The boss doesn't develop the project, so it comes in the programmer. Multi-State! {The boss the investor wants=the boss of winning the bid; The owner of the investor's side. Doprogram ();//don't care who's going to finish the project so } } }}
Interface Small Example