20091116-Inheritance-III

20091116-Inheritance-III - CSE115 Introduction to Computer...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:50 645-4739 [email protected]
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Announcements • Register for CSE116 if you haven’t already.
Background image of page 2
Agenda Today: Inheritance overriding of methods (full, partial, none) Primitives integral, floating point, boolean representations wrapper classes Coming up: More control structures
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Last time Different kinds of extension in Java class to class • Object is root of Java’s singly -rooted class hierarchy single inheritance vs. multiple inheritance multiple implementations can conflict interface to interface multiple inheritance OK here • multiple specifications don’t conflict Implementation of interfaces a class can implement an arbitrary number of interfaces • multiple specifications don’t conflict
Background image of page 4
Method overriding A subclass can override a definition inherited from superclass How: by providing an alternate definition. public class Foo {
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 11

20091116-Inheritance-III - CSE115 Introduction to Computer...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online