A comprehensive C++ simulation developed for CS112 (Object-Oriented Programming). This platform provides an immersive experience where users can adopt, name, and nurture various species of virtual pets while engaging with gaming elements.
- Pet Adoption & Customization: Browse diverse pet species and give them unique names.
- Dynamic Interaction: Perform activities such as feeding, grooming, and playing.
- Gaming Elements: Progress through levels, earn rewards, and unlock achievements based on pet care quality.
- Social & Educational: Includes content on responsible pet ownership and animal welfare.
- Inheritance: Models entities such as specific pet types (Cats, Dogs, Birds) and environments from base classes.
- Polymorphism & Virtual Functions: Enables dynamic pet behaviors and customized interactions.
- Class Templates: Utilized to create flexible, generic containers for managing collections of pets and activities.
- Exception Handling: Robust error management for invalid inputs and system reliability.
The project follows a modular class structure to establish clear relationships between pets, users, items, and environments.
- Language: C++
- Paradigm: Object-Oriented Programming (OOP)
- Interface: Console-based User Interface (CUI)
- Compile all source files (e.g.,
g++ main.cpp Pet.cpp -o VirtualPet). - Run the executable.
- Use the menu to adopt a pet and start interacting.
- Hassan Khalid
- Tayyab Shahjehan
- Syed Ali Bin Asad
- Abdul Raheem Goraya
- Taha Shafique
Developed for CS112(Object Oriented Programing OOP) - Faculty of Computer Science and Engineering at GIKI