Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Storing children class in Parent Class
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
mirhagk




PostPosted: Sun Feb 06, 2011 2:38 pm   Post subject: Storing children class in Parent Class

Is this possible/does these produce off side-effects
code:

abstract class ConditionPoll : TriggerCondition
{
      public class HealthCheck : ConditionPoll
     {
     }
}


I'm using C#, and this just seems like the cleanest way to organize my code. Putting all the children inside the abstract parent class makes it much simpler to organize.
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: