Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
KaiquanMah
/
TurkuBasicOOPinJava
like
0
Running
App
Files
Files
Community
0a98d2b
TurkuBasicOOPinJava
/
Week 4: Writing classes
38 kB
Ctrl+K
Ctrl+K
1 contributor
History:
17 commits
KaiquanMah
Create 11A Other object methods (beyond get/set)
0a98d2b
verified
10 months ago
11A Other object methods (beyond get
Create 11A Other object methods (beyond get/set)
10 months ago
01a Class and object
Safe
1.78 kB
CONSTRUCTOR
10 months ago
01b. Three objects [FROM CLASS CREATE OBJECTS]
Safe
1.54 kB
ClassName variableName = new ClassName("str1", "str2", int3);
10 months ago
02A Objects' methods
Safe
1.08 kB
Create 02A Objects' methods
10 months ago
02B. Set the clocks to the correct time
Safe
1.99 kB
Create 02B. Set the clocks to the correct time
10 months ago
03A Writing a class: file contents
Safe
2.55 kB
class, constructor
10 months ago
03B. Match attributes and classes
Safe
354 Bytes
Create 03B. Match attributes and classes
10 months ago
04. Define attributes
Safe
1.45 kB
Create 04. Define attributes
10 months ago
05. Define attributes 2
Safe
1.63 kB
ArrayList<String>
10 months ago
06a. Keyword this
Safe
1.43 kB
this.<attributeName> = paramName;
10 months ago
06b. Write the constructor
Safe
1.43 kB
public className(dtype1 param1, ...) {...}
10 months ago
07. Lottery rounds' attributes and constructor
Safe
1.7 kB
int vs ArrayList<Integer>
10 months ago
08a Object's methods AND private ATTRIBUTES
Safe
5.2 kB
Create 08a Object's methods AND private ATTRIBUTES
10 months ago
08b. Write get methods
Safe
2.46 kB
public dtype getAttrituteName() {...}
10 months ago
09a. Setting Methods
Safe
3.04 kB
public void setAttributeName(dtype attributeName) { ...<chk> <set value>... }
10 months ago
09b. Create Storage set methods
Safe
4.55 kB
Create 09b. Create Storage set methods
10 months ago
10. Lap times' set and get methods
Safe
2.8 kB
param != null
10 months ago