search for: incapsulaton

Displaying 2 results from an estimated 2 matches for "incapsulaton".

Did you mean: incapsulation
2011 Apr 06
2
S4 generic functions/methods vs enclosures
...and setMethod for this particular class. This, however, presumes that there is "virtuality" for this function, i.e. it could be used with other inherited classes . Truth is, many, if not most of my functions don't have virtuality in mind. I want to write them inside classes to achieve incapsulaton only -- use class member data without passing it as parameters or making global to a bunch of functions and have some specific class member functions that don't pollute a global namespace and can be called only for a particular class. This is what enclosured do in R. Is there some obvious way o...
2011 Apr 05
1
super basic questions about S4 classes
...nd setMethod for this particular object. This, however, presumes that there is "virtuality" for this function, i.e. it could be used with other inherited classes . Truth is, many, if not most of my functions don't have virtuality in mind. I want to write them inside classes to achieve incapsulaton only -- use class member data without passing it as parameters or making global to a bunch of functions and have some specific class member functions that don't pollute a global namespace and can be called only for a particular class. This is what i know how to do with enclosures in R. Is there...