Today I had attended a interview for skill set asp.net,c#,Sql
Interview Person asked a question as below
there is a class with two methods.
Public class employee
Public int Getsalary
public string GetEmployee
any new client creating object for this class should not have access for getsalary method.
existing client creating object for this class should have access for both methods.
Please tell me how to achieve this.