When starting to build the application we will start the design of the class, usually we will see cases of some layers seem to be in a relationship with other classes, they have pretty similar features.When an object to achieve the properties and the behavior of the parent object, then that is the inheritance. This increases the computer code for reuse. It is used to achieve diversity in the runtime. ex: 3 class Android, IPhone, WindowsPhone.
đang được dịch, vui lòng đợi..