Posts by GideãoSouza • 11 points
1 post
-
1
votes2
answers84
viewsA: Using interfaces for domain classes
The advantage of the interface is to use its behaviors, regardless of the type of the object. Example. interface IAnimal{ void Respira(); } class Cachorro : IAnimal { void Respira() { //Respira de…