# NOT RUN {
library(R6)
ab <- AbstractClass("abstract", public = list(hello = "Hello World"))
# }
# NOT RUN {
# errors
ab$new()
# }
# NOT RUN {
child <- R6Class("child", inherit = ab)
child$new()$hello
# }
Run the code above in your browser using DataLab