Type
Primitive types
Classes
definition
class OneTwoThree extends int {
OneTwoThree() { // characteristic predicate
this = 1 or this = 2 or this = 3
}
string getAString() { // member predicate
result = "One, two or three: " + this.toString()
}
predicate isEven() { // member predicate
this = 2
}
}class bodies
inheritance
1
1
One, two or three: 1
concrete class
abstract class
Last updated