0% found this document useful (0 votes)
8 views77 pages

Object Oriented Thinking

The document outlines objectives for understanding object-oriented programming, including class abstraction, differences between programming paradigms, and relationships between classes. It emphasizes class encapsulation, which separates implementation details from usage, allowing users to interact with classes without needing to know their internal workings. Additionally, it covers the use of wrapper classes, BigInteger, BigDecimal, and string processing in Java.

Uploaded by

kgztjmqsss
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views77 pages

Object Oriented Thinking

The document outlines objectives for understanding object-oriented programming, including class abstraction, differences between programming paradigms, and relationships between classes. It emphasizes class encapsulation, which separates implementation details from usage, allowing users to interact with classes without needing to know their internal workings. Additionally, it covers the use of wrapper classes, BigInteger, BigDecimal, and string processing in Java.

Uploaded by

kgztjmqsss
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 77

Object Oriented

Thinking
Objectives
■ To apply class abstraction to develop software (§10.2).
■ To explore the differences between the procedural paradigm and object-
oriented paradigm (§10.3).
■ To discover the relationships between classes (§10.4).
■ To design programs using the object-oriented paradigm (§§10.5–10.6).
■ To create objects for primitive values using the wrapper classes (Byte,
Short, Integer, Long, Float, Double, Character, and Boolean)(§10.7).
■ To simplify programming using automatic conversion between primitive
types and wrapper class types (§10.8).
■ To use the BigInteger and BigDecimal classes for computing very large
numbers with arbitrary precisions (§10.9).
■ To use the String class to process immutable strings (§10.10).
■ To use the StringBuilder and StringBuffer classes to process mutable strings
(§10.11).
Class Abstraction
• Class abstraction is the separation of class implementation from the use of
a class. The details of implementation are encapsulated and hidden from
the user. This is known as class encapsulation. Java provides many levels of
abstraction, and class abstraction separates class implementation from
how the class is used. The creator of a class describes the functions of the
class and lets the user know how the class can be used. The collection of
methods and fields that are accessible from outside the class, together
with the description of how these members are expected to behave, serves
as the class’s contract. As shown in Figure 10.1, the user of the class does
not need to know how the class is implemented. The details of
implementation are encapsulated and hidden from the user. This is called
class encapsulation. For example, you can create a Circle object and find
the area of the circle without knowing how the area is computed. For this
reason, a class is also known as an abstract data type (ADT).

You might also like