22) Stack unwinding | Java with Ali

Аватар автора
We talk a little bit more about using Finally keyword before going into detail about stack unwinding and how the data structures LIFO call-stack is important when looking at the try, catch and throw of exceptions. REMEMBER: API - Application Programming Interface. DAU - Define, Assign, Use. IDE - Integrated Development Environment. Composition design = more flexibility. Inheritance uses the keywords extends (like it extends your family by inheriting members of the superclass into the subclass), super and override. Abstract = not planning to create a new concrete object i.e. it cannot be instantiated which means you cannot create a new object from it. Static variable = sharing a variable across multiple objects i.e. in a computer game every player needs to know how many enemies are on screen. SSI - Sequence, Selection, Iteration... LIFO - Last In, First Out and more acronyms to follow! Access modifiers: The 3 P's - for access modifiers Private, Public and Protected. We can use protected to allow a subclass access to a superclasses members but this is not recommended as it gives access to all classes within that package AND it allows direct access to manipulate the data of the superclass. Use of the principle of least privilege is recommended, for example, using accessor (getter) as well as mutator (setter) methods instead of changing to protected is also recommended. - - - - - - - - - - SUBSCRIBE: ❤️SUBSCRIBE to the JWA channel for free Java videos every week...

0/0


0/0

0/0

0/0

0/0