What is Methods?

What is Methods?

Method:-Method is object-oriented item of any language. All C# programs are constructed from a number of classes and almost all the classes will contain methods. A class when instantiated is called an object. Object-oriented concepts of programming say that the data members of each object represent its state and methods represent the object behavior.
Method Signature:-
Each method is declared as follows:

 Access modifier   Return-type methodname ( Parameterslist );

Example:- public string printpro(string s,int y);

By:kamal
Date:2012-10-10 00:00:00

Method:-Method is object-oriented item of any language. All C# programs are constructed from a number of classes and almost all the classes will contain methods. A class when instantiated is called an object. Object-oriented concepts of programming say that the data members of each object represent its state and methods represent the object behavior.
Method Signature:-
Each method is declared as follows:

 Access modifier   Return-type methodname ( Parameterslist );

Example:- public string printpro(string s,int y);

By:kamal
Date:2012-10-10 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Links

C interview questions and answers for experienced and fresher