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