Looks like no one added any tags here yet for you.
Encapsulation
A way of keeping things organized in programming
Encapsulation, Class
It means wrapping data (variables) and data (methods) in a single unit, called what?
Encapsulation
Hides the internal details and allows only specific parts to be accessed
protect important data
We use encapsulation to __ and keep things simple
control how it’s accessed or modified
We use encapsulation whenever we need to protect data and __
exposing only what’s necessary
Encapsulation is useful when you want to simplify how others use your code by __
private
When using encapsulation, we declare attributes as __
Setter
A method used to set or update the value of a private variable in a class
invalid or unexpected values
Without a setter, the variable might be changed to __
Getter
A method used to retrieve or “get” the value of a private variable
provides safe access
Getters __ to the variable without directly exposing it
Polymorphism
The ability of a single function, method, or object to take on different forms
Poly (many) and Morph (forms)
Polymorphism comes for the Greek words __
method overriding and method overloading
Polymorphism allows a single interface to represent different types of objects or behaviors through __
Method overloading
Occurs when multiple methods in the same class have same name but different parameter lists
Method overriding
Occurs when a subclass provides a specific implementation for a method that is already defined in its parent class
Abstraction
The process of hiding unnecessary details and showing only the essential features of an object or a concept
cannot be instantiated
Abstract classes __ because it is designed to serve as a blueprint for other classes
Abstract method
Can only be declared inside an abstract class
Abstract method
A method without a body and needs to be overriden
Interface
Is like a contract or a blueprint
Interface
Are used to achieve 100% abstraction
static and final
In abstraction, any variable that you declare would be __
default modifier
Inside an abstract method, you can use the __ to create a method with a body
Implements keyword
Used after the class name to implement an interface in that certain class