简体   繁体   中英

Java: Android class and api package hierarchy inheritance

I'm not sure if I've grasped some basic java on class & package hierarchy, please confirm or correct the following:

  java.lang.Object  

         android.view.View 

                android.view.ViewGroup 

                         android.widget.RelativeLayout

java.lang.Object

//1) Object is a super class?

android.view.View

//2) View class extends Object class and View is in view package?

android.view.ViewGroup

//3) ViewGroup class extends View class, both classes are in view package?

android.widget.RelativeLayout

//4)There is package calle widget that contains a RelativeLayout class that extends ViewGroup?

android reference: http://developer.android.com/reference/android/widget/RelativeLayout.html

Thanks Luther

All of that is correct. Need I say more?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM