Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Whats the point of abstract methods

$
0
0
Whats the point in making abstract methods if you have to override them anyway in a derived class and you don't even define the body?
it seems like its just a waste of time. I understand what inheretance is and I see why polymorphism is useful. Not all animals are frogs, but all animals eat. I get it. But whats the point of the abstract method if there is no body to it anyway and I have to rewrite everything with override in my new class inheriting the abstract class.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>