This is the second in a series of project for using Delegates. The next few articles submitted will get a bit more complex and will be modeled after this one to help get people familiar with what is being accomplished. This is a brief description of the following project for this article. SaleStaff : Management
For the example listed we have two base classes with virtual methods. The two base classes have classes, which are derived. We also have a class containing a delegate. The following example shows the objects and their derived classes.
The Employees Class contains:
Management
Virtual method containerDevelopers
Virtual method containerCompany
Delegate
contatiner
Managers : Management
Overloads constructor and Virtual method AssociateConsultants :
Developers Overloads constructor
and Virtual method
Overloads constructor and Virtual method Consultants : Developers
Overloads constructor and Virtual method
Executives : Management Overloads constructor and Virtual method
SeniorConsultants : Developers Overloads constructor and Virtual method
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.
pedroPosted Dec 29, 2008, 10:55 AM
is interesting manage delegates, i want to implement a delegate over a constructor class, is this possible?