[MISY350] - Final Exam Guide - Comprehensive Notes for the exam (37 pages long!)

89 views37 pages

Document Summary

**** char use single quote, string uses double quotes!!!: comments = // or, /* and */ (for multiline comments) Data types & variables: int x; - alerting compiler that i"m gonna use the variable x (error will pop up, to initialize the variable, give it a value. Int x=0: use a cast if you wanna convert a variable into an integer int z=x + (int)y, always rounds down. 6+4. 7 =10 int/int = integer: double/int=1. 0 as decimal, boolean this problem comes out false because john is not older than mary, string is not purple or bold class, string name = mark serva . Shows where mark serva is stored: final double pi = 3. 14 (final double in purple, pi may never change its value, so pi=z; will not work. Functions/methods part 1: methods and functions are pretty much the same, methods are used in the object oriented world.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Documents