Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
interface implementation with another interface
Seshadri M
Oct 15 2017 12:45 PM
157
Reply
//i am getting error the modifier public is not valid for this item
interface i
{
public void method1();
}
interface a:i
{
public void methoda();
}
class Program:a
{
static void Main(string[] args)
{
a obj1 = new Program();
obj1.method1();
Console.ReadLine();
}
void method1()
{
Console.WriteLine("methods1interface");
}
void methoda()
{
Console.WriteLine("methods1interface");
}
}
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to autoplay next song/video in WMP in C# with mysql
How to create a list of list of different classes?