
Using Classes
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
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
3 questions
Vocabulary Flashcards
Flashcard
•
University
10 questions
The Law on Obligations and Contracts
Flashcard
•
University
10 questions
Timeline and Historical Investigations
Flashcard
•
11th Grade
10 questions
NSTP CWTS
Flashcard
•
University
10 questions
Section 2.00 Test Prep M
Flashcard
•
9th - 12th Grade
4 questions
Types of Brands
Flashcard
•
University
10 questions
SC1X - Week 1
Flashcard
•
University - Professi...
10 questions
Story of Golf Ch. 5 Part 1 Flashcard
Flashcard
•
12th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade