class Company { private Employee _Employee {get;set;} // private fields as composition private Client _Client {get;set;} public Company() { _Employee = new Employee(); _Client = new Client(); } public AddEmploees() //Employee objects are controlled by Company { // } public DeleteEmploees() { // } public AddClients() //Client objects are controlled by Company { // } public DeleteClients() { // } } class Employee { string Name {get;set;} int ID {get;set;} string Address {get;set;} string Department {get;set;} DateTime DOB {get;set;} private Employee() // constructor private { } } class Client { string CID {get;set;} string Name {get;set;} string Type {get;set;} DateTime StartDate {get;set;} string Address {get;set;} private Client() // constructor private { } }
public Client _Client {get;set;}
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)