Here the Example for Using Overloading method via Interface in C#.Net
Interface Name: IFamily
Interface Name: IFamily
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FactoryPattern
{
interface IFamily
{
string DisplayName(string str);
}
}
Interface Name: IFamilyMemberusing System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FactoryPattern
{
interface IFamily
{
string DisplayName(string str);
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FactoryPattern
{
interface IFamilyMembers
{
string DisplayFamilyMembers(string str);
string DisplayName();
}
}
ClassName: ClsFamilyusing System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FactoryPattern
{
interface IFamilyMembers
{
string DisplayFamilyMembers(string str);
string DisplayName();
}
}
Interface Name(s):IFamily ,IFamilyMembers