Package Exports
- mubeen-oop-project
- mubeen-oop-project/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mubeen-oop-project) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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-projectIssues
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