Saved Bookmarks
| 1. |
C# Provides A Default Constructor For Me. I Write A Constructor That Takes A String As A Parameter, But Want To Keep The No Parameter One. How Many Constructors Should I Write? |
|
Answer» Two. Once you write at LEAST ONE CONSTRUCTOR, C# CANCELS the freebie constructor, and now you have to write one yourself, even if there is no implementation in it. Two. Once you write at least one constructor, C# cancels the freebie constructor, and now you have to write one yourself, even if there is no implementation in it. |
|