[Go to site: main page, start]

0% found this document useful (0 votes)
3 views6 pages

Java Programming Basics Explained

Java is an object-oriented programming language that uses classes to define patterns for objects. Every Java program is a class, and classes are templates for creating objects which are specific instances that have attributes like variables to describe their state, and methods to define their behavior by changing attributes. The document provides an introduction to key concepts in Java like classes, objects, attributes, methods, and how they are used to define the description and behavior of objects in a Java program.
Copyright
© Attribution Non-Commercial (BY-NC)
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)
3 views6 pages

Java Programming Basics Explained

Java is an object-oriented programming language that uses classes to define patterns for objects. Every Java program is a class, and classes are templates for creating objects which are specific instances that have attributes like variables to describe their state, and methods to define their behavior by changing attributes. The document provides an introduction to key concepts in Java like classes, objects, attributes, methods, and how they are used to define the description and behavior of objects in a Java program.
Copyright
© Attribution Non-Commercial (BY-NC)
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 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