Object-oriented syntax in BBj
In this section, you learn how BBj implements object-oriented programming. You write a first class, reference classes from other programs and build an object-oriented dialog.
What is object-oriented programming?
Refresh what object orientation means and find reading material if you are new to it.
A first class in BBj
Write your first class in BBj and see the syntax of object-oriented code blocks.
Reference classes from other programs
Use the USE verb to reference classes that live in other BBj programs.
An object-oriented dialog
Develop an object-oriented dialog class that takes user input and returns it to the calling program.
Additional documentation and useful hints
Find more documentation and hints about BBj classes, reflection and upgrading older object-oriented code.
Exercise: Build a login dialog
Write a login dialog as a BBj class that checks a user name and password pair.
Bonus exercise: Make your Tic-Tac-Toe object-oriented
Refactor your Tic-Tac-Toe game into an object-oriented design and decide how many classes you need.