Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C Sharp only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C Sharp
Instantiation
Instantiation
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
abhishekphukan
New Member
Join Date:
Jul 2014
Posts:
34
#1
Instantiation
Aug 17 '14, 03:46 PM
What is mean by instantiating a class..can someone plz expalin with proper e.g..
Thank you.
horace1
Recognized Expert
Top Contributor
Join Date:
Nov 2006
Posts:
1510
#2
Aug 17 '14, 04:43 PM
it is where you create an object
have a look at
http://msdn.microsoft.com/en-gb/libr...tiatingClasses
Comment
Post
Cancel
abhishekphukan
New Member
Join Date:
Jul 2014
Posts:
34
#3
Aug 17 '14, 05:01 PM
Thank you..helped a lot..:)
Comment
Post
Cancel
abhishekphukan
New Member
Join Date:
Jul 2014
Posts:
34
#4
Aug 17 '14, 05:02 PM
In other word its mean creating an object..right?
Comment
Post
Cancel
horace1
Recognized Expert
Top Contributor
Join Date:
Nov 2006
Posts:
1510
#5
Aug 17 '14, 05:04 PM
yes, also called creating a class instance
have a look at constructors
http://msdn.microsoft.com/en-us/libr...=vs.90%29.aspx
Comment
Post
Cancel
abhishekphukan
New Member
Join Date:
Jul 2014
Posts:
34
#6
Aug 18 '14, 03:07 AM
Okay now i understand...co nstructor is immediately invoked whenever a memory for an obeject is allocated or created..am i right?
And it has the same name as the class..:)
Comment
Post
Cancel
abhishekphukan
New Member
Join Date:
Jul 2014
Posts:
34
#7
Aug 18 '14, 03:08 AM
Thank you for clearing my doubts..:)
Comment
Post
Cancel
abhishekphukan
New Member
Join Date:
Jul 2014
Posts:
34
#8
Aug 18 '14, 03:09 AM
keep helping......:)
Comment
Post
Cancel
horace1
Recognized Expert
Top Contributor
Join Date:
Nov 2006
Posts:
1510
#9
Aug 18 '14, 04:43 AM
The constructor is the method (same name as the class) called when an object is created to initialize the object
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment