|
1
beginner
0
intermediate
0
advanced
|
|||
|
||||
|
Superficially, both interfaces and abstract classes are look similar, but there are a few important differences: An interface is a contract, and any class which implements the interface has to abide by the contract by providing an implementation of the methods and/or properties which the interface declares. An interface cannot contain any code. A class can implement any number of interfaces.
|
|||
|
||||