Does creating an instance of a subclass, create an instance of it's parent class in Java

后端 未结 0 1518
小鲜肉
小鲜肉 2020-12-02 19:34

Suppose I have a main class Vehicle and it\'s sub class Car. If i create an instance of car like:

Car honda = new Car();


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题