mubeen-oop-project
v1.0.0
Published
Welcome to the Personality Checker CLI to understand the concepts of OOP, a command-line interface designed to determine a student's personality based on a series of questions. This project showcases Object-Oriented Programming (OOP) principles with class
Downloads
11
Maintainers
Readme
Personality Checker CLI
Welcome to the Personality Checker CLI, a command-line interface designed to determine a student's personality based on a series of questions. This project showcases Object-Oriented Programming (OOP) principles with classes like Person
and Student
.
Classes
1. Person
The Person
class serves as the base class, containing properties and methods to handle personality-related functionalities.
2. Student
The Student
class extends the Person
class, introducing additional features to handle student-specific information. It includes properties like _name
for storing the student's name, along with getters and setters for convenient access.
3. Main
The Main
class handles the program logic, incorporating the 'inquirer' library for user input. It prompts the user with a personality preference question, creates an instance of the Person
class, and displays the determined personality based on the user's response.
Usage
- Clone the repository:
git clone https://github.com/mubeendev3/typescript-projects.git
- Change into the project directory:
cd 09-OOPProject
- Install dependencies:
npm install
- Run the Student Personality Quiz CLI:
npx ts-node index.ts
- Follow the prompts to determine the student's personality.
How to Use
- Answer the personality preference question.
- View the determined personality.
Example
npx mubeen-oop-project
Issues
If you encounter any issues or have suggestions, please report them on the GitHub repository.
Follow Me:
🌐 Connect with Mubeen on LinkedIn 🐙 Explore Mubeen's projects on GitHub 📸 Follow Mubeen's creative journey on Instagram 🐦 Stay updated with Mubeen on Twitter 🎨 Discover Mubeen's design portfolio on Behance