Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Study Note on Java - Fundamentals of OOP

Rating
-
Sold
-
Pages
2
Uploaded on
28-02-2022
Written in
2021/2022

Study Note on Java - Fundamentals of OOP

Institution
Course

Content preview

Chapter 1: Fundamentals of Object-Oriented Programming

1.1 Object Oriented Programming (OOP) is an approach to program organization and development,
which attempts to eliminate some of the pitfalls of conventional programming methods. OOP allows us
to decompose a problem into several entities called Objects and then build data and functions (known
as methods in Java) around the entities. The combination of data and methods make up an object.
Object = Data + Methods
The data of an object can be accessed only by the methods associated with that object.

1.1.1 Features:
 Emphasis is on data rather than procedure.
 Programs are divided into what are known as Objects
 Data structures are designed such that they characterize the objects.
 Methods that operate on the data of an object are tied together in the data structure.
 Data is hidden and cannot be accessed by external functions.
 Objects may communicate with each other through methods.
 New data and methods can be easily added whenever necessary.
 Follows bottom-up approach in program design

1.2 Basic Concepts of OOP

Objects: Objects are runtime entities in an object-oriented system. They may represent a person, a
place, a bank account, a table of data or any item that the program may handle.

Classes: The entire set of data and code of an object can be made a user-defined data type using the
concept of a class. A class may be thought of as a “Data type” and an object as a variable of that data
type. Once a class has been defined, we can create any number of objects belonging to that class. Each
object is associated with the data of type class with which they are created.

Data Abstraction: Abstraction refers to the act of representing essential features without including the
background details or explanations. Classes use the concept of abstraction and are defined as a list of
abstract attributes such as size, weight and cost, and methods that operate on these attributes.

Encapsulation: The wrapping up of data and methods into a single unit (called class) is known as
encapsulation. The data is not accessible to the outside world and only those methods, which are
wrapped in the class, can access it. These methods provide the interface between the object’s data and
the program. This insulation of the data from direct access by the program is called data hiding.
Encapsulation makes it possible for objects to be treated like “black boxes”, each performing a specific
task without any concern for internal implementation.

Inheritance: Inheritance is the process by which objects of one class acquire the properties of objects of
another class. In OOP, the concept of inheritance provides the idea of reusability. This means that we
can ass additional features to an existing class without modifying it. this is possible by deriving a new
class from the existing one.

Connected book

Written for

Institution
Course

Document information

Uploaded on
February 28, 2022
Number of pages
2
Written in
2021/2022
Type
Class notes
Professor(s)
Mrs. prabitha
Contains
All classes

Subjects

$7.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
sinithomas

Also available in package deal

Get to know the seller

Seller avatar
sinithomas Study Notes
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 year
Number of followers
0
Documents
10
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions