Posts Tagged ‘How to create class’

How to create class in c#.net?

This item was filled under [ Interview Questions ]

Class having the structure like c++ and java in c#.net and microsoft adding some functionality for class. the structure of class is below.
class class_name
{
//here we can declare members.
public | private | protected | protected internal member_name;
class_name()// this called constructor.
{
//here we can assign values for members.
member_name=values;
}
//here we can declare member function.
public | private | protected | [...]

Continue reading...

Tagged with: [ , ]