Tag: java
All the articles with the tag "java".
-
Part 3: Encapsulation — Protecting Your Data
Encapsulation in Java, step by step: access modifiers, why fields start private, getters and setters, and when a domain method beats a setter.
-
Part 2: Classes and Objects — Building Your First Java Class
Build your first Java class: create objects, access fields and methods, initialize them with constructors, and use this and static members correctly.
-
Part 1: Object-Oriented Programming in Java: A Complete Story for Students
What object-oriented programming is and why it exists: the trouble with procedural code, objects as real-world models, and the four pillars of OOP in Java.