



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Addressing mode - ANSSpecifies how the operand should be interpreted Addressing modes allow - ANSfor a greater number of locations for data to be stored Advantages of OOP - ANS- Reusable (inheritance and polymorphism)
Contructor - ANSAllows a new object to be created Declarative - ANSFocuses on stating the desired result and how it is obtained are abstracted from the user Direct Addressing - ANSGives the address which holds the value upon which the instruction is to be performed Direct addressing use - ANSLMC Disadvantages of OOP - ANS- Requires an alternative style of thinking so can be difficult
Object-oriented - ANSBuilt on obects formed from classes that have certain attributes and methods. Programs are reusable and easy to update and maintain. Offset necessity - ANSUsed in indexed adressing to access data stored continguously in memory such as in arrays OOP examples - ANSPython, Delphi, Java Overloading - ANSA category of polymorphism that passes in different parameters into a method Overriding - ANSA category of polymorphism that redefines a method and alters the code so it functions differently and produces a different output Polymorphism - ANSObjects can behave differently depending on their class Polymorphism results in... - ANSthe same method producing different outputs depending on the object Problems procedural programming is suited to - ANSProblems that cna be easily expressed as a series of instructions Procedural - ANSA type of imperative programming that uses a sequence of instructions. Can be applied to a wide range of problems, easy to write and interpret. Procedural examples - ANSPascal, Python, Logo
Programming Paradigm - ANSDifferent approaches to using a programming language to solve a problem Recursion - ANSFunctions are expressed in terms of themselves until a certain condition known as a base case is met Selection - ANSA certain block of code is run if a specific condition is met Sequence - ANSCode executed line-by-line Setter - ANSMethod that sets the value of a particular attribute State - ANSGiven by attributes which give an object's properties Structured programming structures - ANSSequence, selection, iteration, recursion Subclass properties - ANSWill have all methods and attributes of the superclass. Can have its own additional properties Use of getters and setters - ANSSo attributes cannot be directly accessed and edited by users