Chapter 6. Class Definitions

JavaFX Script is an object-oriented programming (OOP) language. Because it is built on the Java platform, JavaFX Script inherits almost all the features of Java, including those that support object orientation. We will start this chapter by examining some basic concepts of OOP, and later you will learn how to implement your own class in JavaFX Script.

Object-oriented programming languages were developed to correct some of the flaws programmers found with procedural languages; for example, typically they are not very flexible. In OOP data is treated as a critical element and not allowed to flow unrestrictedly. OOP binds data closely to the functions that operate on it and protects it from accidental modification by outside ...

Get Beginning JavaFX™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.