Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 18th, 2017
84
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
class Order
def initialize(quantity)
@unit_price = 100
@quantity = quantity
end
def amount
@quantity * @unit_price
end
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
Rust | 7 min ago | 2.35 KB
Untitled
Java | 11 min ago | 1.15 KB
Untitled
JavaScript | 33 min ago | 0.08 KB
ResourceGatheringRPG Player Controller Script
GDScript | 34 min ago | 1.22 KB
Untitled
JavaScript | 48 min ago | 0.58 KB
Untitled
JavaScript | 53 min ago | 0.58 KB
data879
JSON | 1 hour ago | 0.64 KB
Untitled
C++ | 1 hour ago | 1.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!