abstractClass: Declares a class as abstract.

View source: R/fcts_misc.R

abstractClassR Documentation

Declares a class as abstract.

Description

Forbids instantiation of an abstract class. This method must be called from within a constructor of an abstract class. It will throw an error if a direct call is made to this constructor.

Usage

abstractClass(cls, obj)

Arguments

cls

The name of the abstract class to check.

obj

The object being instantiated.

Value

Nothing.


pkrog/biodb documentation built on Nov. 29, 2022, 4:24 a.m.