Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 6

JAVA PROGRAMMING

TUTORIAL
BY
TWESIGOMWE GILBERT
• What is java?
• -It’s simply an Object oriented programming
language.

• A few points to note;


• -it makes use of classes
• -every program created in java is aclass
• Class
• A class is a pattern. A pattern is anything you
want to write the program about. Say books,
cars, tables, chairs etc

• Object
• -a specific instance of an a class
Two types of information about objects

• - How to define an object


• -How to change an object
• A state – Is the description of an object
• Attributes – help in the description of an object.
They are variables e.g skincolor, ballweight,
ballspeed.

• Behaviour-changes of an object
• Methods – used to define the behavior of an
obeject eg. For a ball a method could be
changecolor, changeweight, changespeed
You can now write code
THANKS

You might also like