
Using Classes

Flashcard
•
Computers
•
12th Grade
•
Hard
Jeffrey Smith
FREE Resource
Student preview

9 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Shoes shoe1 = new Shoes();
Back
public Shoes(){
brand = "Nike"
size = 7;
}
2.
FLASHCARD QUESTION
Front
Shoes shoe2 = new Shoes("Adidas");
Back
public Shoes(String brand){
this.brand = brand;
size = 7;
}
3.
FLASHCARD QUESTION
Front
Shoes shoe1 = new Shoes(){
System.out.println(shoe1);
Ouput: Brand: Nike Size: 7
Back
public String toString(){
return "Brand: " + brand + " Size: " + size;
}
4.
FLASHCARD QUESTION
Front
System.out.println(shoes1.getBrand());
Back
public String getBrand(){
return name;
}
5.
FLASHCARD QUESTION
Front
shoes1.setSize(10);
Back
public void setSize(int size){
this.size = size;
}
6.
FLASHCARD QUESTION
Front
shoes1.setBrand("Puma");
Back
public void setBrand(String brand){
this.brand = brand;
}
7.
FLASHCARD QUESTION
Front
System.out.println(shoes1.getSize());
Back
public int getSize(){
return size;
}
8.
FLASHCARD QUESTION
Front
Shoes shoe3 = new Shoes("Reebok", 9);
Back
public Shoes(String brand, int size){
this.brand = brand;
this.size = size;
}
9.
FLASHCARD QUESTION
Front
shoes1.addOneToSize();
Back
public void addOneToSize(){
size++;
}
Similar Resources on Wayground
11 questions
Crimson Consulting

Flashcard
•
12th Grade
14 questions
Chp 4 Types of business org

Flashcard
•
11th Grade
10 questions
Brand Logos Flashcard

Flashcard
•
10th Grade
15 questions
Progress Check 4

Flashcard
•
12th Grade
3 questions
Tuần 65

Flashcard
•
KG - University
8 questions
Brands/Logos

Flashcard
•
KG - University
10 questions
Matta Brand Compliance Flashcard

Flashcard
•
KG - University
10 questions
Quis Tafsir Brand Destinasi dan Keputusan Wisatawan

Flashcard
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade