Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Tips and short articles on this subject
Tips for writing a test program (Ruby / Python / Java)
Abstract classes, Interfaces, PHP and Java
Abstract Classes - Java
Calling base class constructors
Java - a demonstration of inheritance on just one page
Teaching Object Oriented Java with Students and Ice Cream
Java - using super to call a method in the parent class
An example of Java Inheritance from scratch
What are factory and singleton classes?
Final, Finally and Finalize - three special words in Java
Comparison of Object Oriented Philosophy - Python, Java, C++, Perl
Think about your design even if you don't use full UML
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Java module J710
Extending Classes and More
Exercises, examples and other material relating to training module J710. This topic is presented on public courses Learning to Program in Java, Java Bootcamp, Java Programming for the Web

Learning to Program in Java - Writing Java programs for newcomers to programming. This course introduces you to programming in the Java programming language. ...
http://www.wellho.net/course/sjfull.html  [course]
Java Bootcamp - An intense course on Java programming, Servlets and JSPs This course introduces you to the Java programming language, and its Internet ...
http://www.wellho.net/course/bjfull.html  [course]
Java Programming for the Web - Learn to write server- or client-side applications in Java. This course introduces you to the Java programming language, ...
http://www.wellho.net/course/jpfull.html  [course]
In all object oriented languages, you have a facility called inheritance where you can define one type of thing ("class of object") based on another, ...
http://www.wellho.net/mouth/1819_Cal ... ctors.html  [short article]
If you're writing a Java class in which you override a method from the base class, can you still make use of that base class method in your new code? ...
http://www.wellho.net/mouth/1501_Jav ... class.html  [short article]
A final method or variable is one that can't be overridden - you can define a method as final within a class to ensure that any extensions to the class ...
http://www.wellho.net/mouth/1066_Fin ... -Java.html  [short article]
Do you find some of the OO terminolgy baffling? Once you've learnt about constructors and methods, inheritance, overloading and polymorphism and statics, ...
http://www.wellho.net/mouth/1217_Wha ... sses-.html  [short article]

Learn how to implement inheritance in Java, and how Java handles Polymorphism. Java also provides the concepts of abstract classes and interfaces, which are also covered by this module.

This topic is presented on public courses Learning to Program in Java, Java Bootcamp, Java Programming for the Web

Examples from our training material
Babysitter.java   Application that uses Hire, Cinema and TV films
BaseFile.java   An abstract base class
Book.java   Inheriting from the Universal Superclass. Also test harness in same file as class.
Car.java   Class that implements an interface
Cinema.java   extended class example
Hire.java   Hire Film - extended class
HireFilm.java   Class HireFilm (extends film from other module)
Hires.java   Application to use HireFilm
House.java   Another class than implements an interface
Ipay.java   Application using an array of objects that implement an interface
Lecture.java   Lecture - application for exercise
Lecturer.java   Lecturer - subclass for use in exercise
People.java   People - base class for use in exercise
Round.java   Exercise template - calculate price of a round
Student.java   second subclass for use in exercise
Tv.java   Another extended class - TV
insurable.java   Interface definition
Pictures
Students learning Java on a private course
Background information
This module is available under an Open Training Notes License for free download from http://www.training-notes.co.uk.
Topics covered in this module
Extended classes.
Encapsulation.
Alternative exercise.
Abstract Classes.
Getting your design right.
The universal superclass.
Interfaces.
The final modifier.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page.

Well House Consultants specialise in training courses in Java,Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses at our training centre in Melksham, Wiltshire, England. It's surprisingly cost effective to come on our public courses - even if you live in a different country or continent to us.

We have a technical library of over 700 books on the subjects on which we teach. These books are available for reference at our training centre. Also available is the Opentalk Forum for discussion of technical questions.


You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2010: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho