Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Czas.h"
- void Czas::ustawSekundy(int _ile)
- {
- sekundy = _ile;
- }
- void Czas::ustawMinuty(int _ile)
- {
- minuty = _ile;
- }
- void Czas::ustawGodziny(int _ile)
- {
- minuty = _ile;
- }
- int Czas::podajSekundy()
- {
- return sekundy;
- }
- int Czas::podajGodziny()
- {
- return godziny;
- }
- int Czas::podajGodziny()
- {
- return godziny;
- }
- #include <iostream>
- class Czas
- {
- private: //atrybut prywatny
- int sekundy; //dostępny tylko z poziomu klasy
- int minuty;
- int godziny;
- public:
- void ustawSekundy(int _ile); //metoda publiczna
- void ustawMinuty(int _ile);
- void ustawGodziny(int _ile);
- int podajSekundy();
- int podajMinuty();
- int podajGodziny();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement