Please enable JavaScript.
Coggle requires JavaScript to display documents.
Java (OOP (Encapsulation (Access Modifiers (Public, Private, Protected,…
Java
OOP
Encapsulation
Data -hiding
Flexibility (read/write only via getters/setters)
Re-usability
Easy unit testing
Access Modifiers
Public
Private
Protected
Package (default)
Inheritance
Reliability
Reusability
Reduce code redundancy
Types
Implements
Interfaces
Extends
Classes
Abstraction
Data
Could be stored in a different way, access is the same
Control
High vs low level programming languages
Hiding implementation details
Methods
Polymorphism
Compile time (static)
Overloading
Method
Multiple methods with same signature that take different parameters
Operator
Run time
Overriding
Method
Use child class method over the parents inherited method
JVM
Ability to run java bytecode on any OS
Use of 'javac' to compile code to Java bytecode
Allows for platform independence