Skip to main content

Reference classes from other programs

To reference other classes, we use the USE verb, like we did in the earlier chapter for referencing a Java type.

Watch on YouTube

BBx Clues 7: Reference BBj Classes from Other Programs: https://www.youtube.com/watch?v=aN518WzvIOQ

In the CarApplication.bbj we use

use ::Car.bbj::Car
use ::Car.bbj::FlyingCar

to reference the Car and FlyingCar classes in the original file.