Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class TeniskiIgrach {
- private:
- string ime;
- string prezime;
- bool liga;
- public:
- TeniskiIgrach() {
- }
- TeniskiIgrach(string _ime, string _prezime, bool _liga) {
- ime = _ime;
- prezime = _prezime;
- liga = _liga;
- }
- string get_ime() {
- return ime;
- }
- string get_prezime() {
- return prezime;
- }
- bool get_liga() {
- return liga;
- }
- void set_ime(string _ime) {
- ime = _ime;
- }
- void set_prezime(string _prezime) {
- prezime = _prezime;
- }
- void set_liga(bool _liga) {
- liga = _liga;
- }
- };
- class RangiranTeniskiIgrach : public TeniskiIgrach {
- private:
- int rang;
- public:
- RangiranTeniskiIgrach() : TeniskiIgrach() {}
- RangiranTeniskiIgrach(string _ime, string _prezime, bool _liga, int _rang) : TeniskiIgrach(_ime, _prezime, _liga) {
- rang = _rang;
- }
- int get_rang() {
- return rang;
- }
- void set_rang(int _rang) {
- rang = _rang;
- }
- };
- int main()
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement