Reporter: Ezra Joy Celino Raymond Chris Nacinopa Geleen Dela Cruz

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 33

REPORTER:

EZRA JOY CELINO


RAYMOND CHRIS
NACINOPA

When a programming language is


created that allows programmers
to program in simple English, it will
be discovered that programmers
cannot speak English.
- Anonymous

Java - The new programming language developed by Sun


Microsystems in 1991.
Originally called Oak by James Gosling, one of the
inventors of the Java Language.
Java -The name that survived a patent search
Java Authors: James , Arthur Van , and others
Java is really C++ -- ++

Java Compiler - Java source code (file with extension .java) to


bytecode (file with extension .class)

Bytecode - an intermediate form, closer to machine


representation
A interpreter (virtual machine) on any target platform interprets
the bytecode.

PACKAGES

Main Concepts
Object
Class
Inheritance
Encapsulation

Objects
identity unique identification of an object
attributes data/state
services methods/operations
supported by the object
within objects responsibility to provide these services
to other clients

Class
type
object is an instance of class
class groups similar objects
same (structure of) attributes
same services
object holds values of its classs attributes

Encapsulation
Separation between internal state of the
object and its external aspects
How ?
control access to members of the
class
interface type

Inheritance

Class hierarchy
Generalization and Specialization

subclass inherits attributes and services from its superclass


subclass may add new attributes and services
subclass may reuse the code in the superclass
subclasses provide specialized behaviors (overriding and dynamic binding)
partially define and implement common behaviors (abstract)

OUTPUT:

OUTPUT:

You might also like