|
-
May 4th, 2007, 04:16 AM
#1
Thread Starter
Fanatic Member
what is the use of new key word
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
-
May 4th, 2007, 04:42 AM
#2
Re: what is the use of new key word
How about trying to look at the MSDN reference? A simple search would have landed you here
new operator
static keyword
Use [code] source code here[/code] tags when you post source code.
My Articles
-
May 4th, 2007, 07:13 PM
#3
Hyperactive Member
Re: what is the use of new key word
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.
-
May 4th, 2007, 07:14 PM
#4
Hyperactive Member
Re: what is the use of new key word
Sorry Shuja Ali. I didn't see the links you posted.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|