To work with OOPs, classes and objects are required.
A class is a logical representation.
Object is a physical representation.
instance of a class.
In .Net class is a collection of Fields, Properties, Methods and Events.
Private data of a class is called as Fields.
Defines the look and feel of an object.
What an object can Do.
What user can do with an object.
Form1 code :
public partial class Form1 : Form
//GD General/Global area
private int i = 10;//Fields
public void print()
private void button1_Click(object sender, EventArgs e)
vikasnigam v = new vikasnigam();