Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
P. 1
10 Slide

10 Slide

Ratings: (0)|Views: 55|Likes:
Published by MohamedFMN

More info:

Published by: MohamedFMN on Oct 25, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

10/20/2011

pdf

text

original

 
1
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved. 0-13-148952-6
Chapter 10 Abstract Classes andInterfaces
 
Chapter 7 Objects and Classes
 
Chapter 8 Strings and Text I/O
 
Chapter 9 Inheritance and Polymorphism
 
Chapter 6 Arrays
 
§10.2, “Abstract Classes”§10.4, “Interfaces”Chapter 13 Graphics
 
Chapter 14 Event-Driven Programming
 
Chapter 17 Exceptions and AssertionsChapter 18 Binary I/O
 
Exception and binary I/O can be covered after Chapter 9GUI can be covered after §10.2, “Abstract Classes”Chapter 12 GUI Basics
 
Chapter 11 Object-Oriented Design
 
 
2
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved. 0-13-148952-6
Objectives
x
To design and use abstract classes (§10.2).
x
To process a calendar using the Calendar and GregorianCalendar classes (§10.3).
x
To declare interfaces to model weak inheritance relationships (§10.4).
x
To define a natural order using the Comparable interface (§10.4.1).
x
To know the similarities and differences between an abstract class and aninterface (§10.4.2).
x
To declare custom interfaces (§10.4.3).
x
(Optional) To enable objects cloneable using the Cloneable interface (§10.4.4).
x
To use wrapper classes (Byte, Short, Integer, Long, Float, Double, Character, andBoolean) to wrap primitive data values into objects (§10.5).
x
(Optional) To use the BigInteger and BigDecimal classes for computing verylarge numbers with arbitrary precisions (§10.5.6).
x
To create a generic sort method (§10.5).
x
To simplify programming using JDK 1.5 automatic conversion between primitivetypes and wrapper class types (§10.6).
x
(Optional GUI) To handle GUI events (§10.7).
 
3
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved. 0-13-148952-6
The
abstract
Modifier 
3
The
abstract
class
 – Cannot be instantiated – Should be extended and implemented insubclasses
3
The
abstract
method
 – Method signature withoutimplementation

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->