0% found this document useful (0 votes)
2 views5 pages

Java Object-Oriented Programming Basics

Java is an object-oriented programming language. In object-oriented programming, a program consists of a collection of interacting objects rather than a sequence of instructions. To write an object-oriented program, developers first define classes that describe the types of objects in the program including their attributes and behaviors, then create objects from those classes to accomplish tasks. Objects communicate by sending and receiving messages that cause methods to process data.

Uploaded by

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

Java Object-Oriented Programming Basics

Java is an object-oriented programming language. In object-oriented programming, a program consists of a collection of interacting objects rather than a sequence of instructions. To write an object-oriented program, developers first define classes that describe the types of objects in the program including their attributes and behaviors, then create objects from those classes to accomplish tasks. Objects communicate by sending and receiving messages that cause methods to process data.

Uploaded by

api-239719766
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Java

Object-Orientated Programming Language

Foundation of Objectdefinition of a program:


Orientated
Programming
sequence of instructions that perform a particular task on a computer

program consists of a collection of interacting objects


to write a program: you need to describe different types of objects: what they can
do, how they are created, and how they interact with other objects

Objects and Classes


object: an abstraction for a real-world object
has states/attributes

class: template to create objects

when writing a program: first define classes, then create objects from
these classes to accomplish tasks

Messages and Methods


method of a class: processes a message, which can include a value or
arguments

Take a look at this piece of


code.

You might also like