iqis / Q7

Freestyle Object Oriented Programming in R
GNU General Public License v3.0
5 stars 1 forks source link

Example to illustrate problem with Hierarchical OOP #15

Open iqis opened 3 years ago

iqis commented 3 years ago

Birds generally fly. Turkey doesn't. Mammals generally don't fly. Bat does.

canFly() feature can be added to Bat() and not be added to Turkey()