i am new in C# and i am a little confused with the abstruct, virtual and override terms in C#... why they are good for?
i tried to google it but i got more confused...
for example - i am making a chess program and i made a class "piece" and other classes for pawn, knight, bishop etc. that inherit from piece
now, i wanna to made a "LegalSquares" function that show me all the legal squares on the board - ofcourse it will be different between the pieces
what is the right way to do it?
make an abstruct methode "LegalSquares" in piece and then regular "LegalSquares" methode in each piece class? or i confused and need to use virtual?
why not make the methode inside each class without the abstruct thing? why it is good for?
thanks in advance!!!