-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathHW1.rtf
More file actions
20 lines (20 loc) · 1.03 KB
/
HW1.rtf
File metadata and controls
20 lines (20 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang9\f0\fs22 Please read: \par
Chapter 3 Classes, Objects, and Variables \par
p.86-90 Strings (Strings section in Chapter 6 Standard Types)\par
\par
1. What is an object?\par
An object is a representation of a thing.\par
2. What is a variable?\par
Variables are names used to store information to be referenced and manipulated.\par
3. What is the difference between an object and a class?\par
Objects are things within a class. A class is a classification system for objects.\par
4. What is a String?\par
A collection of characters that exist as an object of the String class.\par
5. What are three messages that I can send to a string object? Hint: think methods\par
join, split, chomp!\par
6. What are two ways of defining a String literal? Bonus: What is the difference between them?\par
'string' and "string". "string" allows for way more escape characters.\par
\par
}