2.7 Create classes in Finance and operations apps Flashcards

1
Q

Classes definition?

A

Classes contain data and methods that represent the state and behavior of an object

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

Why add classes?

A

To declare new elements variables or methods
Manipulate data

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

What does using “final” keyword do?

A

Helps prevent the class from being inherited

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

What does using “extends” keyword do?

A

Used when your class is being derived from another class

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

New method definition?

A

Creates an instance of the class by using “new” keyword

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

Finalize method definition?

A

A destructor method that finalizes an instance of a class by using the “finalize” keyword

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

Main method definition?

A

Creates an instance of an object and calls the required member methods.
Class method that is run directly from a menu option

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

Instance method definition?

A

Referred to object method, it is embedded in each object that is created from the class that contains the instance method

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

Static method definition?

A

Class method, it uses the “static” keyword and belongs to a class.
You don’t need to instantiate an object before you use the method

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

When are static methods commonly used?

A

When working with data that is stored in tables

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

Select method?

A

Declares the data that will be modified

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

Insert method?

A

Used to add one or more records to a table

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

Update method?

A

Used to modify the current record based on conditions

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

Where clause?

A

Used to specify a condition that the update method will test as it processes each row of the table

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

Delete method?

A

Used to remove records from a table

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