powered by
class(x) = classes
setClasses(x, classes)
character
x
setClasses(list(), c("foo1", "foo2"))
Run the code above in your browser using DataLab