I am having a fallowing code.
public void Function(MyClass obj)
{
obj.Get();
}
I am having 3 different clas MyClass , YourClass, HisClass of same type. I want to use this function for all class. When the input parameter is changed with any of these 3 classes it should take that class object only and execute. Please help me for this problem.