Java super() inheritance

前端 未结 2 914
小蘑菇
小蘑菇 2021-01-22 00:17

A short summary of the question: I have a parent class which is extended by a child class.

     public class Parent{

        public Parent(){
          //constr         


        
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-22 00:59

    That would call the Child class constructor, which in turn will call the Parent class constructor.

提交回复
热议问题