Error: Does not implement interface member
c#, interface
Solution
You need to implement the exact functions that sit in the interface(with the same number of input params)..
So in you case change your interface to:
interface Figura
{
String Perimetar(int a, int b, int c)
String Plostina(int a, int b, int c)
}
Or change you implementation to functions with no params.
Problem
I'm new to c#, and I'm kinda struggling with implementing interfaces, gonna be very grateful if someone helps me with this, with an explanation. Thanks ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace interfejsi interface Figura { String Plostina (); String Perimeter (); } } using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace interfejsi { class Kvadar : Figura { int a,b,c; public String Perimetar(int a, int b, int c) { return (a + b + c).ToString(); } public String Plostina(int a, int b, int c) { return (a * b * c).ToString(); } } ``` }