Hey guys, junior here `Car` is a class, which exte...
# android
o
Hey guys, junior here
Car
is a class, which extends an abstract class
Vehicle
I didn't write a constructor for
Vehicle
. why the compiler complains?
z
It just means you need to put
()
after
Vehicle
, which is a constructor invocation
All classes have constructors. If you don’t explicitly write one, they have an implicit default constructor.
o
But
Vehicle
is an abstract class. How is it possible that it has an implicit constructor? @Zach Klippenstein (he/him) [MOD]
z
o
Thanks a ton @Zach Klippenstein (he/him) [MOD]
z
Also you might want to check out #getting-started
1