
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;
}
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
3 questions
Climate Changed Flashcard
Flashcard
•
KG - University
10 questions
MT 9-Urban Living Flashcards
Flashcard
•
11th Grade
10 questions
Barriers of physician-patient relationships inprofessionalism
Flashcard
•
University
10 questions
IGCSE Computer Science Flashcard
Flashcard
•
11th Grade
8 questions
Untitled Flashcards
Flashcard
•
University
9 questions
Easter Rising 1916
Flashcard
•
11th Grade
2 questions
Segmentation, Targeting and Positioning
Flashcard
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade