+ 2

is it possible to create many sub-classes of one parent class?

like vechile is parent class and car,bike,bus,plane extends vechile class?

14th Nov 2017, 8:10 AM
Gaurav Nagar
Gaurav Nagar - avatar
4 Answers
+ 2
yes it is possible
14th Nov 2017, 2:29 PM
Prabhat Thakur
Prabhat Thakur - avatar
+ 12
Yes , 👇 class vehicle {} class car extends vehicle {} class bike extends vehicle {} class bus extends vehicle {} class plane extends vehicle {}
14th Nov 2017, 8:35 AM
David Akhihiero
David Akhihiero - avatar
+ 3
I think yes..
14th Nov 2017, 8:20 AM
Ramanagoud Padnur
Ramanagoud Padnur - avatar