No announcements
Found 1678721 threads
-
7 Votes
What is the purpose of constructor in c#??
>What is thr purpose of constructor in c#??Answered | 10 Replies | 3262 Views | Created by Smita Sil - Wednesday, September 2, 2015 1:43 PM | Last reply by Filip Ekberg - Thursday, September 3, 2015 1:29 AM -
1 Votes
C# constructor
C# decided to follow an age old and well recognized pattern for object initialization that's used by other languages like C++ and Java.Answered | 3 Replies | 2752 Views | Created by Magrata - Tuesday, June 2, 2009 9:33 PM | Last reply by Nishant Sivakumar - Tuesday, June 2, 2009 9:49 PM -
1 Votes
Is the defualt constructor resposible for all the global fields initializations?
Only those variables which are without any initialization values will be implicity assigned with default values by a constructor.Answered | 6 Replies | 675 Views | Created by sniff_bits - Tuesday, November 12, 2013 3:31 AM | Last reply by PaulLinton - Wednesday, November 13, 2013 12:40 AM -
0 Votes
list of classes with constructors
Or we would have to understand your real world scenario and what you are trying to achieve but initializing immediately the list with a single element...Answered | 10 Replies | 680 Views | Created by snkpd - Wednesday, March 20, 2013 6:37 PM | Last reply by snkpd - Thursday, March 21, 2013 8:58 PM -
5 Votes
Constructor in C#
Convert between VB, C#, C++, & Java (http://www.tangiblesoftwaresolutions.com)Answered | 11 Replies | 3823 Views | Created by Mayoo.N - Monday, April 25, 2011 4:25 AM | Last reply by Arif Sarwar - Tuesday, April 26, 2011 3:40 PM -
0 Votes
Should members always be initialized with a default constructor?
How else, besides initializing members to a default value or relying on the default constructor provided by the compiler, can one be sure a class is in a valid state?Answered | 5 Replies | 2557 Views | Created by new to sql server - Saturday, December 5, 2009 8:08 PM | Last reply by Reed Copsey, Jr - Sunday, December 6, 2009 9:59 PM -
0 Votes
constructor calling constructor
On 5/25/2016 6:29 PM, del noble wrote: Reading this ...Answered | 1 Replies | 1251 Views | Created by del noble - Wednesday, May 25, 2016 10:29 PM | Last reply by Igor Tandetnik - Wednesday, May 25, 2016 10:53 PM -
4 Votes
why create constructor in c#
Sure there are default constructors in C#, the term applies to C# as to other OO-languages and is frequently used throughout ...Answered | 11 Replies | 3536 Views | Created by Raghwendra Chaubey - Wednesday, May 23, 2012 5:43 AM | Last reply by Mitja Bonca - Thursday, May 24, 2012 9:42 AM -
0 Votes
Inheritance in c# with constructor
If I don't write any constructors in C# class, Doesn't even C# compiler generate a default constructor ?Answered | 10 Replies | 2625 Views | Created by Ahmedmii - Sunday, March 10, 2013 7:18 PM | Last reply by Ahmedmii - Monday, March 11, 2013 2:39 PM -
1 Votes
Constructor in C#
new <classname>() will call the constructor.Answered | 2 Replies | 3586 Views | Created by sdfgfdgfd - Tuesday, June 14, 2011 7:58 AM | Last reply by sdfgfdgfd - Tuesday, June 14, 2011 6:41 PM -
0 Votes
when c++ copy constructors?
Hello TaeWon Kim, The copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been ...Answered | 3 Replies | 3868 Views | Created by TaeWon Kim - Thursday, April 2, 2009 1:18 AM | Last reply by TaeWon Kim - Thursday, April 2, 2009 4:54 PM -
1 Votes
[C++] - about copy constructor
It's the initializer.Answered | 26 Replies | 1356 Views | Created by Cambalinho - Saturday, February 8, 2014 4:51 PM | Last reply by Igor Tandetnik - Sunday, February 16, 2014 4:43 PM -
0 Votes
[VS2013, C++] Initializer list in Ctor
" It matches the string(const_pointer, const_pointer) constructor to be precise.Answered | 3 Replies | 1079 Views | Created by Romely - Thursday, March 6, 2014 3:20 PM | Last reply by Mike Danes - Friday, March 7, 2014 6:59 AM -
0 Votes
Constructors(C#)
It is not inherited, but the parameterless constructor is, by default, called automatically at the start of the constructors of derived classes.Answered | 7 Replies | 3293 Views | Created by Nivedita Mukherji - Saturday, August 7, 2010 3:43 PM | Last reply by Serguey123 - Monday, August 9, 2010 2:57 PM -
0 Votes
C# Generics and Constructors
As mentioned, a constructor cannot have generic type parameters, for good reasons (Google if you are curious).Answered | 4 Replies | 4044 Views | Created by recherche - Friday, December 19, 2008 7:16 PM | Last reply by recherche - Saturday, December 20, 2008 8:18 AM -
0 Votes
C++ 11 Initialize List Question
Bug ID (804731) -Answered | 3 Replies | 3180 Views | Created by ScottCoder - Friday, October 4, 2013 4:10 PM | Last reply by ScottCoder - Monday, October 7, 2013 12:29 PM -
4 Votes
Field Initializer in Struct C#
You need to understand that at compile time, the compiler will attempt to take your code that initializes a given field and put it it in a niladic (parameterless) constructor.Answered | 1 Replies | 14315 Views | Created by richard1994x - Wednesday, July 31, 2013 7:26 AM | Last reply by ByteBlast - Wednesday, July 31, 2013 8:48 AM -
6 Votes
Constructor Chaining in C#
so wiil that "my default address" taken as the e_address?Answered | 14 Replies | 58407 Views | Created by Sam S - Friday, September 30, 2005 3:34 PM | Last reply by Louis.fr - Wednesday, June 27, 2012 5:25 PM -
0 Votes
How to initialize a field before Base Constructor is called
Don't call virtual methods in the constructor.Answered | 3 Replies | 12078 Views | Created by NoEgo - Friday, February 5, 2010 4:04 PM | Last reply by Ji.Zhou - Thursday, February 11, 2010 2:05 AM -
0 Votes
Member Initializer List
Note that in C++11, there is also the possibility to initialize members in the class definition even for non-const ...Answered | 3 Replies | 1527 Views | Created by R.Marek118 - Thursday, July 25, 2013 5:06 PM | Last reply by May Wang - MSFT - Monday, July 29, 2013 8:18 AM - Items 1 to 20 of 1678721 Next ›
No announcements