Lecture 21b
Lecture 21b
Lecture 21b
8
Classes and
Objects: A Deeper
Look
2005 Pearson Education, Inc. All rights reserved.
2
OBJECTIVES
In this chapter you will learn:
Encapsulation and data hiding.
The notions of data abstraction and abstract data types
(ADTs).
To use keyword this.
To use static variables and methods.
To import static members of a class.
To use the enum type to create sets of constants with
unique identifiers.
How to declare enum constants with parameters.
IT114 Winter 2007 R.B. Lenin DA-IICT 2005 Pearson Education, Inc. All rights reserved.
4
IT114 Winter 2007 R.B. Lenin DA-IICT 2005 Pearson Education, Inc. All rights reserved.
5
IT114 Winter 2007 R.B. Lenin DA-IICT 2005 Pearson Education, Inc. All rights reserved.
6
IT114 Winter 2007 R.B. Lenin DA-IICT 2005 Pearson Education, Inc. All rights reserved.
7
IT114 Winter 2007 R.B. Lenin DA-IICT 2005 Pearson Education, Inc. All rights reserved.
8
IT114 Winter 2007 R.B. Lenin DA-IICT 2005 Pearson Education, Inc. All rights reserved.
9
IT114 Winter 2007 R.B. Lenin DA-IICT 2005 Pearson Education, Inc. All rights reserved.
10
IT114 Winter 2007 R.B. Lenin DA-IICT 2005 Pearson Education, Inc. All rights reserved.
11
IT114 Winter 2007 R.B. Lenin DA-IICT 2005 Pearson Education, Inc. All rights reserved.