hi,
1) i would like to know what is the use of new key word in the following examle
class1 c=new class1
2)what is the use of static keyword in the following example:
public static int a
please let me know
Printable View
hi,
1) i would like to know what is the use of new key word in the following examle
class1 c=new class1
2)what is the use of static keyword in the following example:
public static int a
please let me know
How about trying to look at the MSDN reference? A simple search would have landed you here
new operator
static keyword
The new keyword creates an object.
A static member belongs to a class rather than objects of a class.
Google it and I'm sure that you will find much more detailed explainations. I just used from the top of my head as to how I understand it.
Sorry Shuja Ali. I didn't see the links you posted.