// Abstractsample.cs namespace ooptest { class abstractsample { static void Main(string[] args) { Program pgm = new Program(); pgm.execute() } } } // Program.cs namespace ooptest { public class program { public program() { // add constructor code here } public void execute() { // add this method's code here } } }
when you create a NEW PROJECT and after all the filling the all requirement your project is ready for creating programs okay.Instead of writing code in Default page ie Program.cs you have to ADD NEW ITEM and selectClass.(i use MyProgram.cs) After naming it you start (MyProgram.cs) write code in it .Click on Project Menu and click on Set as startup page Press F5 for Debugging code .Click on Project properties i mean click on last option on Project menu Then a Window is open Select ASSEMBLY CLLICK ON STATUP OBJECT i select i select C_SHARP_CONSOLE.MyProgram now my statup page i mean MyProgram.cs is started executing
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)