Unit 1 Flashcards
(34 cards)
programming paradigm
a type of programming that follows a particular set of rules and conventions
Low-level languages
first languages to be developed and were directly related to the machine code of the computer being used
High-Level languages
not directly related to a particular machine and can be used to perform a variety of tasks - more easily understood, written and maintained
level of abstraction
difference between a programming language and machine code with the language and ideas used
compiler
translates high level languages into machine code1
Procedural languages
-starting and end point with logical order
-use program control constructs or blocks -Sequence, Selection, Iteration, Subroutines and Functions
Object-Oriented languages
objects are defined and have properties and methods
Declarative language
SQL
Functional languages
use mathematical functions
structured approach
when the code is broken up into procedures and or subroutines
top-down design
-breaking a bigger problem down
-(can be) showing the modules of modular approach in a hierarchy diagram
structured approach advantages
-can allocate modules to specific programmers thus reducing time
-modules allocated to expertise make better product
-reuse common modules, store in library
OOP
-classifies similar thing into objects
-object is an instance of a class
-use class diagrams for visual representation
what are classes
-a description or template which describes a potential class
-contain data about themselves (properties or attributes)
-the things they do are called methods
data encapsulation
only accessing data about the class through its method
derived classes
subclasses derived from a base class, inherit data defined in the base class
information hiding
key principle of OOP, for ex private data type (-)
abstract classes
cannot instantiate objects of an abstract class, instead only use it as base class
polymorphism
-where objects that have a method of the same name can be processed differently depending on their class
-derived classes usually override a method in a base class
-protected classes cannot be overridden
Access Levels
types of association
aggregation and composition
aggregation
“has a” relationship
composition
“is part of” relationship, stronger association with an existential dependency
UML
Unified Modeling Language
-The relationships between various classes, classes and objects, can be shown using diagrams.