Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pentru cand se strica repo-urile: git pull origin alin.miu
- 5 tipuri de clase:
- - abstracte
- - nested (statice)
- - inner
- - locale
- - anonime
- O clasa are state si behaviour.
- Modificatori de acces (public, protected, private, default: package private)
- Principiile S.O.L.I.D.
- C1 ("is a" -> mostenire, "has a" -> compunere) C2
- Mostenire: hiding si shadowing.
- static (valoare comuna a instantelor clasei respectiv)
- se mostenesc si proprietatile statice (atunci cand mostenim o clasa)
- block-uri de cod si scope-ul lor
- shadowing se refera la scop
- hiding se refera la mosternire
- clasa vs interfata:
- - in interfata nu avem state
- refactoring java
- encapsulation
- compozitie
- delegare
- inheritance can break encapsulation
- **************************DESIGN PATTERNS*****************************
Add Comment
Please, Sign In to add comment