Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
KaiquanMah
/
TurkuBasicOOPinJava
like
0
Running
App
Files
Files
Community
f0c87c9
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
1.78 kB
CONSTRUCTOR
10 months ago
01b. Three objects [FROM CLASS CREATE OBJECTS]
1.54 kB
ClassName variableName = new ClassName("str1", "str2", int3);
10 months ago
02A Objects' methods
1.08 kB
Create 02A Objects' methods
10 months ago
02B. Set the clocks to the correct time
1.99 kB
Create 02B. Set the clocks to the correct time
10 months ago
03A Writing a class: file contents
2.55 kB
class, constructor
10 months ago
03B. Match attributes and classes
354 Bytes
Create 03B. Match attributes and classes
10 months ago
04. Define attributes
1.45 kB
Create 04. Define attributes
10 months ago
05. Define attributes 2
1.63 kB
ArrayList<String>
10 months ago
06a. Keyword this
1.43 kB
this.<attributeName> = paramName;
10 months ago
06b. Write the constructor
1.43 kB
public className(dtype1 param1, ...) {...}
10 months ago
07. Lottery rounds' attributes and constructor
1.7 kB
int vs ArrayList<Integer>
10 months ago
08a Object's methods AND private ATTRIBUTES
5.2 kB
Create 08a Object's methods AND private ATTRIBUTES
10 months ago
08b. Write get methods
2.46 kB
public dtype getAttrituteName() {...}
10 months ago
09a. Setting Methods
3.04 kB
public void setAttributeName(dtype attributeName) { ...<chk> <set value>... }
10 months ago
09b. Create Storage set methods
4.55 kB
Create 09b. Create Storage set methods
10 months ago
10. Lap times' set and get methods
2.8 kB
param != null
10 months ago
11A Other object methods (beyond get-set)
2.98 kB
11A Other object methods (beyond get-set)
10 months ago
11B. Write class Calculator
1.91 kB
Create 11B. Write class Calculator
10 months ago
12A Object's inside calls
2.16 kB
Create 12A Object's inside calls
10 months ago
12B. Class Letters
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]
3.9 kB
INTERACT w 2 classes OR create COPY of object
10 months ago
13B. Calculate products together
3.11 kB
ClassName combined = new ClassName(param1, param2)
10 months ago
14A. Objects in data structures
1.18 kB
ArrayList, HashMap
10 months ago
14B. Find the oldest dog
3.05 kB
ArrayList<objClassName>
10 months ago
15A Objects inside objects
2.62 kB
Create 15A Objects inside objects
10 months ago
15B. Write class DiscPlaye
3.49 kB
wrapper class contains 0/1 subclass
10 months ago
16. Football match, part 1: Class Player
2.62 kB
Create 16. Football match, part 1: Class Player
10 months ago
17. Football match, part 2: Class Team
3.32 kB
this.listPlayers = new ArrayList<>();
10 months ago
18. Football match, part 3: Class Match
2.95 kB
Create 18. Football match, part 3: Class Match
10 months ago