ch01 - Java Programming Fourth Edition Chapter 1 Creating...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
Java Programming Fourth Edition Chapter 1 Creating Your First Java Classes
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Java Programming, Fourth Edition 2 Objectives • Learn about programming • Be introduced to object-oriented programming concepts • Learn about Java • Analyze a Java application that uses console output
Background image of page 2
Java Programming, Fourth Edition 3 Objectives (continued) • Add comments to a Java class • Save, compile, and run a Java application • Modify a Java class • Create a Java application using GUI output • Correct errors and find help
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Java Programming, Fourth Edition 4 Learning About Programming • Program – Set of written instructions which tells computer what to do • Machine language – Most basic circuitry-level language – Problems • Keep track of many switches • Hard to discover errant switches
Background image of page 4
Java Programming, Fourth Edition 5 Learning About Programming (continued) • High-level programming language – Allows you to use vocabulary of reasonable terms • Syntax – Rules of language • Program statements – Similar to English sentences – Carry out tasks of program
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Java Programming, Fourth Edition 6 Learning About Programming (continued) • Compiler or interpreter – Translates language statements into machine code • Syntax error – Misuse of language – Misspelled programming language word • Debugging – Freeing program of all errors • Logic errors – Also called semantic errors – Incorrect order or procedure
Background image of page 6
Java Programming, Fourth Edition 7 Introducing Object-Oriented Programming Concepts • Procedural programming – Sets of operations executed in sequence – Create names for computer memory locations that hold values • Procedures – Individual operations grouped into logical units • Object-oriented programs – Create classes – Create objects from classes – Create applications
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Java Programming, Fourth Edition 8 Introducing Object-Oriented Programming Concepts (continued) • GUI system – Allows you to treat files as objects – Not all object-orientated programs written to use GUI • Object-oriented programming differs from traditional procedural programming – Basic concepts • Objects • Classes • Inheritance • Polymorphism
Background image of page 8
9 Understanding Objects And Classes • Objects – Made up of attributes and methods – Attributes called states • Attributes – Characteristics that define object – Differentiate objects of same class • Class – Describes group or collection of objects with common properties
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 41

ch01 - Java Programming Fourth Edition Chapter 1 Creating...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online