Small, runnable Java examples introducing object-oriented fundamentals.
JDK 8+; javac and java on PATH.
git clone https://github.com/MisaghMomeniB/java-tutorial.git
cd java-tutorial
# Run each lesson independently
(cd Consept-Of-Object-Oriented && javac Main.java && java Main)
(cd Access-Modifiers && javac Main.java && java Main)
javac Constructor/Main.java
java Constructor.MainStart with Student (object creation and fields), then BankAccount (private fields and public getters/setters), then Person (explicit no-argument and parameterized constructors). The constructor example prints Unknown - 0 and Ali - 25. Each lesson has its own Main class.
Consept-Of-Object-Oriented/Main.java — classes and instances; Access-Modifiers/Main.java — encapsulation; Constructor/Main.java — constructor overloading and package usage.
The current examples do not demonstrate all four OOP pillars, protected access or constructor chaining. Suggested next exercises: inheritance, interfaces, polymorphism, exception handling and collections.
Report issues with reproducible steps and submit focused pull requests describing the change and validation performed. Respect existing project licenses and attribution.