Description and code examples of the main 4 aspects of OOP.
Project's Tree
|- src # Contains the examples with a dedicated Main class for each of them.
| |- Abstraction
| | |- Component.java
| | |- Main.java
| | |- Motherboard.java
| | |- Ram1.java
| | |- Ram2.java
| |- ClassObject
| | |- Employee.java
| | |- Main.java
| |- Encapsulation
| | |- Main.java
| | |- Secret.java
| |- Inheritance
| | |- Main.java
| | |- Phone.java
| | |- Smartphone.java
| |- Polymorphism
| | |- Calculator.java
| | |- Main.java
|- .gitignore # Excludes IDE specific, compiled and not needed files.
|- LICENSE # Details about the license.
|- README.md # This file.
- Create a project with your favorite IDE.
- Include the content of
/src
inside your newly created project. - Execute the main class of your choice.
Depending of your IDE, with Eclipse and IntelliJ it is possible to edit the run configuration according to the main of your choice.
Contributions are always welcome, thank you for you time. Here are the steps to do so.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/MyContribution
) - Commit your Changes (
git commit -m 'Add MyContribution'
) - Push to the Branch (
git push origin feature/MyContribution
) - Open a Pull Request
See the LICENSE
file at the root of the project directory for more information.