R.oo (version 1.26.0)

isAbstract.Class: Checks if a class is abstract or not

Description

Checks if a class is abstract or not. A class is abstract if it has abstract methods.

Usage

# S3 method for Class
isAbstract(this, ...)

Value

Returns TRUE if the class is abstract, otherwise FALSE.

Arguments

...

Not used.

Author

Henrik Bengtsson

See Also

class(). setConstructorS3(). For more information see Class.

Examples

Run this code
  if (isAbstract(RccViolationException))
    throw("The class RccViolationException should NOT be abstract.")

Run the code above in your browser using DataLab