/pythonEx

python OOP exercise

Primary LanguagePython

Python OOP exercise

Advertiser and Ad classes inherit from BaseAdvertising. main class is for test them.

Output

baseAdvertising.describeMe();

It's description of BaseAdvertising, the parent of Ad and Advertiser.

ad2.describeMe();

It's description of Ad, the child of BaseAdvertiser.

advertiser1.describeMe();

It's description of Advertiser, the child of BaseAdvertiser.

before set: advertiser2.getName();

name2

after set: advertiser2.getName();

new name

ad1.getClicks();

2

advertiser2.getClicks();

1

Advertiser.getTotalClicks();

3

Advertiser.help();

for define Advertiser you shoud input uniq id and name.