Midterm OOP - Lesson 2 Flashcards

1
Q

are user – defined data types and it behave like built in types in
a programming language.

A

class

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

a group of conceptualized related state and behavior (objects)

A

class

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

it is a model or template for objects (objects are variables of the class)

A

class

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

are the basic run – time entities of an object oriented programming

A

OBJECT

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

they may represent a person, place, or any item that the program must handle

A

OBJECT

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

bundle of related state and behavior

A

OBJECT

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

things that an object can do (function)

A

behavior

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

properties that describe the specific instance (appearance)

A

state

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

when a program is executed, the ________ are interacting with each other

A

OBJECT

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

(4) ACCESS MODIFIERS

A

Public, Private, default, protected

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

Access modifier: method, class, variables (for main class only)

A

public

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

Access modifier: method, class, variables

A

private

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

Access modifier: class, variables (for subclass only)

A

default

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

Syntax for Class

A

access modifier class className {
}

public static void hakdog {
}

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

is a non - access modifier in Java that allows user to access an object/class without any reference to any other object.

A

static

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

is a part of a program that allows user to create an instance of a specific object/class.

A

constructor

17
Q

you don’t need to create any instance of an object if it is declared as static.

A

Constructor

18
Q

substitute for the data type if the object (specifically method) doesn’t have a return value.

19
Q

a keyword that is used if a method / object has a value to return.

20
Q

if the method declared as void then you cannot use return keyword

21
Q

an object that can be built in or user defined

22
Q

one of the** basic foundation** of OOP

23
Q

you can call a method inside another method of the same type

A

okies thenks

24
Q

Syntax for method

A

accessModifier static/not datatype methodName (parameters) {
}

public static int add(int x){
}