Hree

0

votes
1

answer
18

views

Shouldn't every class that inherits an interface implement all interface members?

What is the difference between ClassTemp1 and ClassTemp2? I thought every class that implements an interface should implement all the interface members but ClassTemp2 has no error. Why? public interface ITemp : IComparable { void Temp(); } public class ClassTemp1 : ITemp // Error { } public class Cl...
Hree