Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Inheritance-Single/R/inheritance-single-1.r
Normal file
2
Task/Inheritance-Single/R/inheritance-single-1.r
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
aCollie <- "woof"
|
||||
class(aCollie) <- c("Collie", "Dog", "Animal")
|
||||
5
Task/Inheritance-Single/R/inheritance-single-2.r
Normal file
5
Task/Inheritance-Single/R/inheritance-single-2.r
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
setClass("Animal", representation(), prototype())
|
||||
setClass("Dog", representation(), prototype(), contains="Animal")
|
||||
setClass("Cat", representation(), prototype(), contains="Animal")
|
||||
setClass("Collie", representation(), prototype(), contains="Dog")
|
||||
setClass("Lab", representation(), prototype(), contains="Dog")
|
||||
Loading…
Add table
Add a link
Reference in a new issue