04-UsingMethods

04-UsingMethods - Chapter IV Using Methods and Parameters...

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

View Full Document Right Arrow Icon
Chapter IV Using Methods and Parameters Chapter IV Topics 4.1 Introduction 4.2 A Brief History of Program Design 4.3 OOP, a Gentle First Exposure 4.4 Using the Math Class 4.5 Using Graphics Methods 4.6 Summary Chapter IV Using Methods and Parameters Page 141
Background image of page 1

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

View Full DocumentRight Arrow Icon
4.1 Introduction In Chapter I you were introduced to a history of program languages. In that brief history of various languages you were told that C++ is a language with extensive Object Oriented Programming (OOP) features, but C++ can be written without using any type of OOP. Java on the other hand revolves around OOP. This means that you need to learn OOP to write correct Java programs and OOP needs to be introduced early in the computer course. OOP can easily overwhelm the new computer science student with a sizable vocabulary of obscure words along with even more obscure definitions for those words. Words like encapsulation , inheritance and polymorphism are not intuitive household words for the average person. It is the aim of Exposure Java to give you a very thorough treatment of all the various OOP concepts. However, these concepts will be introduced one small chunk at a time. OOP may be a formidable challenge to comprehend, but all challenges can be broken down into small manageable parts. This short chapter is but one small stage along the road to master computer science with the Java programming language. You will also find that future chapters will repeat prior concepts frequently to reinforce what was learned earlier. Object Oriented Programming is now an established computer science style of programming that is making the demands of today's computer programs possible. You will also find OOP in future college courses as well as in the computer application programs that surround us. Thinking about objects and using all types of objects has infiltrated practically every area of technology. 4.2 A Brief History of Program Design You are learning computer science with a strong emphasis on Object Oriented Programming (OOP) . It is not possible to write any substantial Java program without understanding OOP. You are probably very excited about learning OOP. It is just too bad that you do not have a clue what OOP is, where it came from and what its purpose is in your space-time-continuum. Page 142 Exposure Java 2009, APCS Edition 08-08-09
Background image of page 2
Answering the what is OOP? question will take this whole course and the next one. Right now, you can learn where OOP comes from with very little complexity. Consider these four program design stages. The Four Stages of Program Design Cryptic Programming Stage Unstructured, Spaghetti-Programming Stage Structured Programming Stage Object Oriented Programming Stage The four stages explained here are somewhat of an over-simplification of the evolution of programming style, but this will do nicely to give you a brief over- view of where computer science has been and where we are today. Cryptic Programming Stage
Background image of page 3

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

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

Page1 / 36

04-UsingMethods - Chapter IV Using Methods and Parameters...

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

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