Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Interface and it's implementation
//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 IShape // interface { void Display(); // by default all methods are public, only declaration of method is allowed void Draw(); } class Circle : IShape // all methods declared in interface must be implemented in derived class { public void Display() // implemented Display() method { Console.WriteLine("Display implemented in Circle"); } public void Draw() // implemented Draw() method { Console.WriteLine("Drawing a circle"); } } public class Program { public static void Main(string[] args) { Circle c1 = new Circle(); c1.Display(); c1.Draw(); } } }
run
|
edit
|
history
|
help
0
Get direct link from onedrive.com
Modulul 3, Exerciţiul 2 – Crearea şi utilizarea unui tip struct
Student Management System
Problem Name_single_digi
Happy
Math v9.1
display xml : linq
z
Events
Robot_Testing