Flashcards in Programing Paradigms Deck (15):
Imperative programming = ?
Assembly language is a low language.
Functional programming - programming language=?
Haskell, lisp, python
What's Functional programming
Programs define mathematical functions. A solution to a problem consist of a series of function calls that manipulate list
Logic programming language
What does logic programs consist of?
Logic programs consist of set of facts and rules.
What is logic programming usually used for
To program artificial intelligence and expert system
What's an object
An instance of a class
Define the word instantiatiom
Instantiation is when an object is defined based on a class
Class definition is...
A pattern/template that can be used to create objects of that class
Making sure the data in a class can't be modified from elsewhere. If something is set as private, won't be able to access it externally.
Example of Instantiation
Dim Polo as new car
Example of encapsulation access
Public sub (byval s as integer) as integer
Where a new class can inherit the attributes and methods of a parent class
Event driven programming
Event is an action detected by a program.