C# patterns subclasses -
i have class person , 2 child classes staff , student , interface iperson . have class database , class gateway . class database has private string id = "username"; and method public void getid() {return id;} both staff , student have getid() methods. gateway has check if method getid() requested staff ( return id ) or student ( return "go away!" ). can please me that. thinking using gateway interface of database class, because trying learn c#, don't know how that. or maybe there's better way of doing this... please thanks here's code: public class staff : person { public staff() {} public staff(string id): base(id) {} public override string getname() { throw new notimplementedexception(); } public override void update(object o) { console.writeline(id + " notified {1}", id, o.tostring()); } public override void updatemessage(object p) { console.writeline(i...