Question 2s Flashcards
1
Q
write an enhttps://www.brainscape.com/umeration
A
public class Test { enum Color { RED, GREEN, BLUE; }
// Driver method public static void main(String[] args) { Color c1 = Color.RED; System.out.println(c1); } }
2
Q
One technique used for the playing of sound within java
A
1
3
Q
define attribute
A
s typically a public constant or a public variable that can be accessed directly.
4
Q
define object
A
is a combination of data and procedures working on the available data.
5
Q
define inheritance
A
Inheritance in Java is a mechanism in which one object acquires all the properties and behaviors of a parent object