2.3 Develop object-oriented code in finance and operations apps Flashcards

1
Q

Object-oriented programming? (OOB)

A

Programming paradigm that is modeled around objects and how you manipulate them
Objects can be physical objects, have attributes (data) and behavior (methods)

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

Two important programming construct found in OOB?

A

Inheritance
Abstract

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

Inheritance?

A

Parent object contains attributes and methods
Child object inherits the properties from the parent, in addition of being able to add its own child only properties

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

Abstract?

A

Used to implement a concept that the subclass will then complete, similar to blueprint

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

Attributes?

A

Represent or store metadata about the behaviors of classes and methods

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

Attribute Classes?

A

Attributes can be created by extending SysAttribute class

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

Attribute use cases?

A

WebMethod attribute indicates if the method should be callable over the SOAP to exchange information
DLLImportAttribute to call unmanaged code
Describing the title, version, description, or trademark of an assembly

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

Chain of Command?

A

Functionality for class extensions
CoC allows to customize standard classes without using even handlers

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

When can CoC not be used?

A

When method contains an attribute of “hookable:false” or “wrappable:false”

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

Internal access modifer?

A

internal class, method can be only accessed from within the model where it is defined

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