https://github.com/kaoutherbo/class-hierarchy-implementation
This repository contains the solutions for an exercise which focuses on implementing a class hierarchy in Java, as outlined in the provided instructions.
https://github.com/kaoutherbo/class-hierarchy-implementation
java java-exercises
Last synced: about 2 months ago
JSON representation
This repository contains the solutions for an exercise which focuses on implementing a class hierarchy in Java, as outlined in the provided instructions.
- Host: GitHub
- URL: https://github.com/kaoutherbo/class-hierarchy-implementation
- Owner: Kaoutherbo
- Created: 2024-03-05T16:48:00.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-11T13:56:09.000Z (almost 2 years ago)
- Last Synced: 2024-12-30T15:37:18.090Z (12 months ago)
- Topics: java, java-exercises
- Language: Java
- Homepage:
- Size: 65.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Class Hierarchy Implementation 🔍
This repository contains the solution for Exercise 1 of a Java project. The exercise requires implementing a class hierarchy in Java based on the provided specifications.
---
# Exercise Description 📝:
The exercise involves writing Java code to implement a hierarchy of classes.
Specific instructions for creating and utilizing various class types are provided.

---
# Contents 📂:
- Main.java: Contains the main method to test the class hierarchy implementation.
- C1.java: Base class implementation.
- C2.java: Subclass of C1.
- C3.java: Subclass of C1.
- C4.java: Subclass of C1.
- C5.java: Subclass of C2.
- C6.java: Subclass of C2.
- C7.java: Subclass of C4.
---
# Usage 🚀:
- Clone the repository to your local machine.
```
git clone "https://github.com/Kaoutherbo/Class-Hierarchy-Implementation"
```
- Navigate to the `src` folder
```
cd src
```
- Compile the Java files using a Java compiler.
```
javac *.java
```
- Run the Main.java file to execute the test cases.
```
java Main
```