2.3 Develop object-oriented code in finance and operations apps Flashcards
Object-oriented programming? (OOB)
Programming paradigm that is modeled around objects and how you manipulate them
Objects can be physical objects, have attributes (data) and behavior (methods)
Two important programming construct found in OOB?
Inheritance
Abstract
Inheritance?
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
Abstract?
Used to implement a concept that the subclass will then complete, similar to blueprint
Attributes?
Represent or store metadata about the behaviors of classes and methods
Attribute Classes?
Attributes can be created by extending SysAttribute class
Attribute use cases?
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
Chain of Command?
Functionality for class extensions
CoC allows to customize standard classes without using even handlers
When can CoC not be used?
When method contains an attribute of “hookable:false” or “wrappable:false”
Internal access modifer?
internal class, method can be only accessed from within the model where it is defined