Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Design Patterns in Java
·
Module 1
Java Foundations: Encapsulation and Polymorphism
1
Java Encapsulation with Visibility Modifiers
Use visibility modifiers (e.g., 'private', 'public') to enforce encapsulation in a Java class.
2
Static vs. Instance Members: Understanding the 'static' Modifier
Differentiate between instance members and class-level members using the 'static' modifier.
3
Understanding the 'final' Modifier
Apply the 'final' modifier to create immutable fields, non-overridable methods, or non-extendable classes.
4
Implementing Java Interfaces
Define a Java interface and implement it in a concrete class.
5
Abstract Classes vs. Interfaces: A Practical Guide
Create and extend an abstract class, distinguishing its purpose from an interface.
6
Interface-Based Programming for Polymorphism
Apply polymorphism by programming to an interface rather than a concrete implementation.
7
Composition vs. Inheritance: Choosing the Right Relationship
Differentiate composition from inheritance and choose the appropriate relationship for a given scenario.
8
Generics for Type-Safe Containers and Methods
Use Java generics to write a type-safe container or method.
Next module isn't ready yet,
Back to course
Previous module
Next module