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); 
    } 
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

One technique used for the playing of sound within java

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

define attribute

A

s typically a public constant or a public variable that can be accessed directly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

define object

A

is a combination of data and procedures working on the available data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly