Skip to content

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

329 Commits

Folders and files

Repository files navigation

Java Tutorial

Small, runnable Java examples introducing object-oriented fundamentals.

Requirements

JDK 8+; javac and java on PATH.

Getting started

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.Main

Features and usage

Start 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.

Project structure

Consept-Of-Object-Oriented/Main.java — classes and instances; Access-Modifiers/Main.java — encapsulation; Constructor/Main.java — constructor overloading and package usage.

Limitations and development notes

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.

Contributing

Report issues with reproducible steps and submit focused pull requests describing the change and validation performed. Respect existing project licenses and attribution.

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages