The definition of simple in "Keep your class hierarchy simple and relevant to
your actual problem" is quite difficult. For someone who has programmed the
classes etc, it is quite simple to understand the heritance. But for example
for someone else, who has to maintain the code and the classes, it might
not.

I know how to define classes, and subclasses and generic function (and I
know also the helpfunction "?"). It is more about the concept. What is the
best way to write good code which is easy to understand by others, easy to
maintain, but doesn't repeat the same generic function for every single
subclass... 

--
View this message in context: 
http://r.789695.n4.nabble.com/Definition-of-generic-function-for-subclasses-tp4468837p4469145.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to