Welcome to my Java Object-Oriented Programming (OOP) learning repository! This repo is a collection of Java programs I created while mastering the key concepts of OOP.
This repository serves as a portfolio of my journey in learning Java through Object-Oriented Programming. Each program demonstrates a different aspect of OOP, such as:
- Classes & Objects
- Inheritance
- Polymorphism
- Encapsulation
- Abstraction & Interfaces
- Exception Handling
Feel free to browse through the code and see how these concepts are implemented.
Here’s a quick look at some of the key programs in this repository:
-
Program 1: Class and Object Basics
A simple program demonstrating the creation of classes and objects. -
Program 2: Inheritance
A program illustrating how inheritance works in Java. -
Program 3: Polymorphism
An example of polymorphism using method overriding. -
Program 4: Encapsulation
A program showcasing the importance of encapsulation in Java. -
Program 5: Abstract Classes and Interfaces
Exploring abstract classes and interfaces. -
Program 6: Exception Handling
Handling exceptions in Java.
To run these Java programs on your local machine:
-
Clone the repository:
git clone https://github.com/Grant6551/Java-OOP-Programs.git cd java-oop-learning
-
Compile and run a program:
- Navigate to the program directory:
cd Java-OOP-Learning
- Compile the Java file:
javac ProgramName.java
- Run the compiled program:
java ProgramName
- Navigate to the program directory:
Each program is standalone and focuses on a specific OOP concept. Use them as learning tools or as a reference for your own projects.
This repository is primarily for personal learning, but contributions are welcome! If you have suggestions, improvements, or additional examples, feel free to fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Thank you for checking out my OOP learning journey in Java! Happy coding! 😊