powered by
Checks if a class is defined public or not. A class is public if it is neither private nor protected.
# S3 method for Class isPublic(this, ...)
Returns TRUE if the class is public, otherwise FALSE.
TRUE
FALSE
Not used.
Henrik Bengtsson
class(). setConstructorS3(). For more information see Class.
class
setConstructorS3
Class
if (!isPublic(RccViolationException)) throw("The class RccViolationException should be public.")
Run the code above in your browser using DataLab