C# Function

 

*C# function 

Q. How to create function in C#.

ans. All function is to be created before the main body .

           All function is to be access inside the main body.

*For loop 

       3 parts are compulsory 

1) variable 

2) condtion

3) Increament / denement

*Function access inside the main body usinng object.

Q.How to create object ?

ans. All object create inside the main body.

                 New = memory allocation .

     Syntax.

              object

     classname objectname = newclassname();

*Object is used to accessing Function.

*Syntax 

 objectname. Function();

e.g Pl ( access operator ) display();

Note: All the program is to be in main body.



Comments

Popular posts from this blog

Basic Query program(insert,update,delete,select)

Data transmission and query string

Detailview(program)