Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
KaiquanMah
/
TurkuBasicOOPinJava
like
0
Running
App
Files
Files
Community
90add41
TurkuBasicOOPinJava
/
Week 4: Writing classes
73.5 kB
Ctrl+K
Ctrl+K
1 contributor
History:
30 commits
KaiquanMah
Create 18. Football match, part 3: Class Match
d90f885
verified
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
11A Other object methods (beyond get-set)
Safe
2.98 kB
11A Other object methods (beyond get-set)
10 months ago
11B. Write class Calculator
Safe
1.91 kB
Create 11B. Write class Calculator
10 months ago
12A Object's inside calls
Safe
2.16 kB
Create 12A Object's inside calls
10 months ago
12B. Class Letters
Safe
5.22 kB
Collections.sort(this.arrayList1)
10 months ago
13A Objects from own classes [i.e. INTERACT w 2 classes OR create COPY of object]
Safe
3.9 kB
INTERACT w 2 classes OR create COPY of object
10 months ago
13B. Calculate products together
Safe
3.11 kB
ClassName combined = new ClassName(param1, param2)
10 months ago
14A. Objects in data structures
Safe
1.18 kB
ArrayList, HashMap
10 months ago
14B. Find the oldest dog
Safe
3.05 kB
ArrayList<objClassName>
10 months ago
15A Objects inside objects
Safe
2.62 kB
Create 15A Objects inside objects
10 months ago
15B. Write class DiscPlaye
Safe
3.49 kB
wrapper class contains 0/1 subclass
10 months ago
16. Football match, part 1: Class Player
Safe
2.62 kB
Create 16. Football match, part 1: Class Player
10 months ago
17. Football match, part 2: Class Team
Safe
3.32 kB
this.listPlayers = new ArrayList<>();
10 months ago
18. Football match, part 3: Class Match
Safe
2.95 kB
Create 18. Football match, part 3: Class Match
10 months ago