0

Why do we use abstract method when we can directly declare normally.i cant see the difference

12th Feb 2019, 11:30 PM
chanukya mahidhar
chanukya mahidhar - avatar
2 Antworten
12th Feb 2019, 11:41 PM
Arushi Singhania
Arushi Singhania - avatar
0
might want to might want to create cars, motorcycles, bicycles, trucks, and other kinds of machines like that, the abstract one to cover them say Vechiles could do so and we can create desired objects as from that base class. save us ever having to make them all just make the abstract base and all the subclasses can come from that. a polygon isnt real its abstract but its subclasses shapes like triangle circle etc are real but they can all be subclass of the abstract base
12th Feb 2019, 11:44 PM
peter
peter - avatar