Guest User

4.Наследяване и абстракция

a guest
Dec 18th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. Наследяване и абстракция
  2. Интерфейси – дефинират съвкупност от свойства и методи, които се имплементират от самия клас, който наследява съответния интерфейс
  3.  
  4. Наследяване – позволява на child класовете да наследяват характеристиките на класът-родител
  5. Child класовете могат да разширяват функционалността на наследения клас. Могат да променят и съществуващи методи от наследения клас чрез override-ване.
  6.  
  7. Inheritance benefits:
  8. - Extensibility
  9. - Code reuse
  10. - Provides abstraction
  11.  
  12. Структурите не могат да се наследяват
  13.  
  14. Abstraction – means ignoring irrelevant features, properties or functions and emphasizing the ones that are relevant to the project we develop
  15. Abstraction gives us the ability to define abstract actions
  16. Abstraction is something we do every day
  17. - Looking at an object, we see the things that have meaning to us and ignoring the others
Advertisement
Add Comment
Please, Sign In to add comment