Inheritance, Polymorphism and Interfaces

This chapter explains how inheritance can be used to write closely related classes that have some fields and methods in common. In the code examples, a set of classes are organized into an inheritance hierarchy of super and sub-classes that goes beyond th

  • PDF / 55,931,708 Bytes
  • 612 Pages / 453.543 x 683.15 pts Page_size
  • 21 Downloads / 231 Views

DOWNLOAD

REPORT


David Parsons

Foundational Java Key Elements and Practical Programming Second Edition

Texts in Computer Science Series Editors David Gries, Department of Computer Science, Cornell University, Ithaca, NY, USA Orit Hazzan , Faculty of Education in Technology and Science, Technion—Israel Institute of Technology, Haifa, Israel

More information about this series at http://www.springer.com/series/3191

David Parsons

Foundational Java Key Elements and Practical Programming Second Edition

123

David Parsons The Mind Lab Auckland, New Zealand

ISSN 1868-0941 ISSN 1868-095X (electronic) Texts in Computer Science ISBN 978-3-030-54517-8 ISBN 978-3-030-54518-5 (eBook) https://doi.org/10.1007/978-3-030-54518-5 1st edition: © Springer-Verlag London Limited 2012 2nd edition: © Springer Nature Switzerland AG 2020 This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. The use of general descriptive names, registered names, trademarks, service marks, etc. in this publication does not imply, even in the absence of a specific statement, that such names are exempt from the relevant protective laws and regulations and therefore free for general use. The publisher, the authors and the editors are safe to assume that the advice and information in this book are believed to be true and accurate at the date of publication. Neither the publisher nor the authors or the editors give a warranty, expressed or implied, with respect to the material contained herein or for any errors or omissions that may have been made. The publisher remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. This Springer imprint is published by the registered company Springer Nature Switzerland AG The registered company address is: Gewerbestrasse 11, 6330 Cham, Switzerland

To my parents, gone but not forgotten.

Preface

In the Spring of 1996, I attended the Object Technology conference at Christ church College, Oxford. The excited buzz around the “new” Java language at this conference got me curious, and a few months spent getting up to speed with the syntax convinced me that it was worth trying out as a teaching language. After overcoming some hurdles, including getting a teaching lab upgraded from Windows 3.1 to Windows 95 so we could run Java, I taught a class of student volunteers at what is now Southampton Solent University the basics of Java in 1997. From this experience I wrote the first edition of “Introductory Java” which was published by Letts Educational in 1998. In 1999 I left academia to spend some years in industry, training and consulting in Java. This gave me a whole new perspective on the language