類的繼承 extends關(guān)鍵字 語法:Child extends Parents 子類Child在繼承了父類Parents類的同時拢操,也繼承了父類中的屬性和方法。 例: image.png image.png image.png image.png