Abstract
Inheritance is a form of software reusability in which programmers create classes that “inherit” an existing class’s data and behaviors and enhance them with new capabilities. Software reusability saves time during application development. It also encourages the reuse of proven and debugged high-quality software, which increases the likelihood that a system will be implemented effectively. When creating a class, instead of writing completely new data members and member functions, the programmer can designate that the new class should inherit the members of the existing class. The existing class is called the base class, and the new class that is derived from the base class is called the derived class. In Java and the JavaFX scripting language, a base class is called a superclass and the derived class is called a subclass.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2010 Lawrence Prem Kumar and Praveen Mohan
About this chapter
Cite this chapter
(2010). Inheritance. In: Beginning JavaFX™. Apress. https://doi.org/10.1007/978-1-4302-7198-7_8
Download citation
DOI: https://doi.org/10.1007/978-1-4302-7198-7_8
Publisher Name: Apress
Print ISBN: 978-1-4302-7199-4
Online ISBN: 978-1-4302-7198-7
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)