OOP Flashcards

1
Q

OOP

A

Object-Oriented Programming

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

DRY

A

Dont repeat yourself

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

Main Aspects

A

Classes and Objects

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

Example Class

A

Fruit

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

Example Objects

A

Appel Banaan Manderijn

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

Example Class

A

Auto

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

Example Objects

A

Audi Bmw Skoda

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

Create a class named “Main” with a variable x:

A

public class Main {
int x = 5;
}

Moet beginnen met hoofdletter en java file moet overeenkomen met de class name

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

Create an object called “myObj” and print the value of x:

A

public class Main {
int x = 5;

public static void main(String[] args) {
Main myObj = new Main();
System.out.println(myObj.x);
}
}

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