Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

parameter overloading

$
0
0

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.



Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>