Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
12 views

Concepts of Object in Java

Objects in software are implemented by representing the characteristics and behavior of real-world objects. Characteristics are implemented as member variables that make up an object's state, while behavior is implemented through member functions called methods. Data and methods are encapsulated into a single unit with a unique name to give it an identity. Encapsulation combines data and the functions that operate on that data into one unit, implementing abstraction by hiding background details and representing only essential features.

Uploaded by

Umesh Prasad
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Concepts of Object in Java

Objects in software are implemented by representing the characteristics and behavior of real-world objects. Characteristics are implemented as member variables that make up an object's state, while behavior is implemented through member functions called methods. Data and methods are encapsulated into a single unit with a unique name to give it an identity. Encapsulation combines data and the functions that operate on that data into one unit, implementing abstraction by hiding background details and representing only essential features.

Uploaded by

Umesh Prasad
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CONCEPT OF OBJECTS

.~

CONCEPTUAL PROBLEMS

1. 2. 3. 4.

An

is an .identifiable entity with some characteristics and behaviour.

- [object] [Abstraction]

refers to the act of representing details or explanations.

essential features without including the background

is the way of combining both data and the functions that operate on that data under a single unit. [Encapsulation] can be defined as a software bundle of variables and related methods. and . _

[Object]

5. Real world objects encapsulate


6. 7. 8. 9. 10. Objects interact with one another through

[characteristics,behaviour] [mes~ges]
.

The data in an object is accessed through the member functions of the object known as The real world objects are implemented variables or data items called The in software form by representing

[methods/memberJunctions]
their state through

[member variables] [behaviour] [state]

of the object is represented through functions called methods.

The values of data member or member variables at any given point of time determine an object's

How are objects implemented in software terms ?


SOLUTION.

The object is implemented in software terms as follows:

(i) Characteristics / attributes are implemented through member variables or data items of the object. (ii) Behaviour is implemented through member functions called methods. (iii) Data and methods are encapsulated into one unit and given a unique name to give it identity.

IJ

What do you mean by Abstraction and Encapsulation ? How are these two terms interrelated?
SOLUTION. Abstraction background details.

is the act of representing

essential features without

including

the

Encapsulation is the act of combining both data and the functions that operate on the data under a single unit. ncapsulation, in a way,_ implements abstraction. '<. ,

II

Encapsulation is one of the mqj()_r properties of OOP. How is it implemented in softWare terms ?
SOLUTION. Encapsulation is 'a way to implement data hiding and abstraction by wrapping up data arid associated functions into a single unit called object.

You might also like