Files
CS-Classes/CS202/Notes/Day9/pets.h
2025-06-17 14:42:22 -07:00

22 lines
399 B
C++

#ifndef PETS_H
#define PETS_H
#include <iostream>
class petType {
std::string name;
public:
petType(std::string n = "") : name(n) {};
~petType() {};
virtual void print() const;
};
class dogType : public petType {
std::string breed;
public:
dogType(std::string n = "", std::string b = "")
: petType(n), breed(b) {};
~dogType() {};
void print() const;
};
#endif