Click here to Skip to main content
16,005,162 members
Home / Discussions / C#
   

C#

 
QuestionHow to update exe file after install application Pin
cocoonwls23-May-08 16:32
cocoonwls23-May-08 16:32 
AnswerRe: How to update exe file after install application Pin
Ravi Bhavnani23-May-08 16:59
professionalRavi Bhavnani23-May-08 16:59 
GeneralRe: How to update exe file after install application Pin
cocoonwls23-May-08 18:15
cocoonwls23-May-08 18:15 
GeneralRe: How to update exe file after install application Pin
Ravi Bhavnani23-May-08 18:19
professionalRavi Bhavnani23-May-08 18:19 
QuestionAbout "Cell Change" event in Excel Pin
Mushtaque Nizamani23-May-08 16:32
Mushtaque Nizamani23-May-08 16:32 
QuestionWindows file metadata Pin
asgardh23-May-08 15:13
asgardh23-May-08 15:13 
QuestionAbstract Classes and Interfaces Pin
Jacob Dixon23-May-08 13:31
Jacob Dixon23-May-08 13:31 
AnswerRe: Abstract Classes and Interfaces Pin
Anthony Mushrow23-May-08 14:00
professionalAnthony Mushrow23-May-08 14:00 
First off, in your Animal class you will need to change the _WhatAmI and _WhatIsMyName variables to protected. A protected variable is exactly the same as private except that derived classes can access the variable. If your not sure what I mean, then try to acces the variable _WhatAmI from the Dog or Cat classes and see what happens.

Now, when you call new ClassName it creates a new instance of the class and the classes constructor is automatically called. So, you need to create a constructor for your Dog and Cat classes which takes the two string parameters.

MSDN on access modifiers[^]
Lots of info on constructors[^]

My current favourite word is: I'm starting to run out of fav. words!
-SK Genius

Game Programming articles start -here[^]-

GeneralRe: Abstract Classes and Interfaces Pin
Jacob Dixon23-May-08 14:22
Jacob Dixon23-May-08 14:22 
GeneralRe: Abstract Classes and Interfaces Pin
Anthony Mushrow23-May-08 14:33
professionalAnthony Mushrow23-May-08 14:33 
GeneralRe: Abstract Classes and Interfaces Pin
Jacob Dixon23-May-08 14:39
Jacob Dixon23-May-08 14:39 
GeneralRe: Abstract Classes and Interfaces [modified] Pin
Roger Alsing23-May-08 23:10
Roger Alsing23-May-08 23:10 
GeneralRe: Abstract Classes and Interfaces Pin
Jacob Dixon24-May-08 5:34
Jacob Dixon24-May-08 5:34 
GeneralRe: Abstract Classes and Interfaces Pin
Jacob Dixon24-May-08 6:04
Jacob Dixon24-May-08 6:04 
GeneralRe: Abstract Classes and Interfaces Pin
Jacob Dixon24-May-08 6:10
Jacob Dixon24-May-08 6:10 
AnswerRe: Abstract Classes and Interfaces Pin
PIEBALDconsult23-May-08 18:43
mvePIEBALDconsult23-May-08 18:43 
GeneralRe: Abstract Classes and Interfaces Pin
Jacob Dixon24-May-08 5:23
Jacob Dixon24-May-08 5:23 
QuestionLog reader, generating events from recorded timestamp Pin
GuimaSun23-May-08 13:18
GuimaSun23-May-08 13:18 
QuestionHow to remove Duplicated rows from DataTable ? Pin
hdv21223-May-08 12:03
hdv21223-May-08 12:03 
AnswerRe: How to remove Duplicated rows from DataTable ? Pin
Christian Graus23-May-08 12:12
protectorChristian Graus23-May-08 12:12 
GeneralRe: How to remove Duplicated rows from DataTable ? Pin
hdv21223-May-08 12:14
hdv21223-May-08 12:14 
GeneralRe: How to remove Duplicated rows from DataTable ? Pin
Christian Graus23-May-08 12:28
protectorChristian Graus23-May-08 12:28 
GeneralRe: How to remove Duplicated rows from DataTable ? Pin
hdv21223-May-08 12:31
hdv21223-May-08 12:31 
QuestionConnect to biometric device Pin
Krazy Programmer23-May-08 7:38
Krazy Programmer23-May-08 7:38 
AnswerRe: Connect to biometric device Pin
led mike23-May-08 8:14
led mike23-May-08 8:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.