search for: getdogage

Displaying 1 result from an estimated 1 matches for "getdogage".

Did you mean: setdogage
2011 Oct 27
0
R.oo package, inherit two classes
...}) setMethodS3("setAge", "Person", function(this,num, ...) { this$.age = num; }) # .......................................... setConstructorS3("Dog", function(dog_age=NA) { this = extend(Object(), "Dog", .dog_age=dog_age ) this }) setMethodS3("getDogAge", "Dog", function(this, ...) { this$.dog_age; }) setMethodS3("setDogAge", "Dog", function(this,num, ...) { this$.dog_age = num; }) #.......................................................... setConstructorS3("PerDog", function(age=NA,wt=NA,dog_age=NU...