Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Kotek
- {
- public:
- Kotek()
- {
- cout << "Kotek jak haribo - pusty jest" << endl;
- };
- Kotek(int waga)
- {
- cout << "Nie!! Kotek gruby jest!!! Waży " << waga << "kg " << endl;
- Kotek(1);
- };
- Kotek(string wzrost)
- {
- cout << "TAK!! Kotek wysoki jest " << wzrost << "kg " << endl;
- };
- };
- int main() {
- Kotek k(1);
- return 0;
- }
Add Comment
Please, Sign In to add comment