Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Interface with same methods
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { interface f1 { void display(); } interface f2 { void display(); } class A:f1,f2 { void f1.display() { Console.WriteLine("Hi f1 interface "); } void f2.display() { Console.WriteLine("How are you? f2 interface"); } public void display() { Console.WriteLine("I am fine A class"); } } public class Program { public static void Main(string[] args) { A a=new A(); a.display(); f1 f=new A(); f.display(); f2 obj=new A(); obj.display(); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
I know it's a bit combersome, but it's my first attempt.
D112
Interface
Math 10.8 added quad seq
ds
lala
saira_pr1.c
String to Decimal CSHARP
Collections
StackOverflowException
Please log in to post a comment.