{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

1620_lecture_8 - ITEC3620 Object-Based Programming Lecture...

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

View Full Document Right Arrow Icon
ITEC3620 Object-Based Programming Lecture 8 Using Classes
Background image of page 1

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

View Full Document Right Arrow Icon
2 Review Sequence, Branching, Looping Primitive datatypes Mathematical operations Four-function calculator Scientific calculator Don’t program the functions yourself
Background image of page 2
3 Math Class Java set of pre-defined mathematical functions and constants Constants (E, PI) Basic functions round, floor, ceil, min, max, abs Trigonometric functions sin, cos, tan, asin, acos, atan Exponential funcions pow, log
Background image of page 3

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

View Full Document Right Arrow Icon
4 Functions Blocks of JAVA code that provide a specific, reusable functionality static double sqrt (double a) static double pow (double a, double b)
Background image of page 4
5 Functions and APIs Application Programmer Interfaces (APIs) list the available functionality of a class An API includes Constants, constructors, and methods Datatypes Argument lists with datatypes Descriptions of functionality
Background image of page 5

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

View Full Document Right Arrow Icon
Constants static double PI The double value that is closer than any other to pi , the ratio of the
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}