I wan to call a method from two diffrent method, but the object which I want to pass is different in both the methods. lets assume an example below.
Public string GetCarDetails(Car carObj)
{
string price=GetCarPrice(carObj);
return price;
}
Public string GetBikePrice(Bike bikeObj)
{
VechileDetails obj = new VechileDetails()
string price=obj.GetBikePrice(bikeObj);
return price;
}
I want to create GetBikePrice method in VechileDetails class which can accept both the object car and bike.
I hope you guys got my problem.
Thanks.
Jaimin ShethiyaPosted Oct 9, 2019, 6:15 AM
can you please used below code for your requirement.
let me know if you needed any other help from myside.
Thanks
Posted Sep 13, 2019, 6:30 AM
Madan ShekarPosted Sep 13, 2019, 12:07 AM
Piyush PansuriyaPosted Sep 13, 2019, 12:03 AM