| | |
instantiation in C#
Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2008
Posts: 10
Reputation:
Solved Threads: 0
C# Syntax (Toggle Plain Text)
class MyProgram { static void Main() { int[] integers; // declare array integers = new int[10]; // size array } }
In which line is the array actually instantiated?
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
Yep.. Just because you've declared a container, doesnt automagically mean its made, thefore the new keyword gives you the default contents for that type
Last edited by LizR; Jan 16th, 2009 at 2:56 am.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
![]() |
Similar Threads
- Instantiation of class objects (C++)
- Microsoft Visual C++/ODBC lookup (C++)
- GUI Type Scope and Instantiation (C++)
- Explicit template instantiation (C++)
- what is the best way to track segmentation fault errors (C++)
- Vectors, Functions, and Sorting... oh my! (C++)
- Zend PHP Certification (PHP)
- Linked List (C++)
Other Threads in the C# Forum
- Previous Thread: RTF
- Next Thread: Previous Next Buttons
Views: 722 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast button c# chat check checkbox class client code color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption event excel file files form format forms ftp function gcd gdi+ http httpwebrequest image index input install java label list listbox listener login math mouseclick mysql networking object operator path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource saving serialization server sleep socket sql statistics stream string tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






