Bill Tsui
Bill Tsui
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 9/20/2024 in #help
βœ… Abstract classes / Interfaces, why do we use them?
I think beginner doesn't need to understand what benefit can we get from using abstract and interface. But when u reading some open source code, for example: dotnet/eShop. U will see many OOP principles in it. So how do we use these principles to simplify our coding? That must use abstract and interface. Abstract classes simplify inheritance of attributes. Interfaces can simplify behavioral inheritance.
17 replies