how to use classes in .net

  • Thread starter Thread starter vimal.424
  • Start date Start date
V

vimal.424

hi all........
can any body told me,how we use Classes & stored procedure in c#.

thanks in advance
 
That is a very vague question. Stored procedures are not a part of .Net, but
you can call a stored procedure in a database by using the
SqlCommand/OleDBCommand class.

As for how to use classes. You really have to be more specific. An
instance of a class is called by a reference to that instance, whereas static
members of a class is called by using the class name.

ClassA ca = new Class();

ca.InstanceMethod();
ClassA.StaticMethod();
 
Back
Top