1.2.4 Programming Languages Flashcards
What is a programming paradigm?
An approach to programming.
What is procedural programming?
Reusable Components : single instructions
Key Features: Built in data types and basic structures.
Instructions run in order
What is functional programming?
Building block: functions
Key features: All instructions contained in functions.
Program runs by running functions.
What is declarative programming?
Key features: User states the desired task or outcome.
The language works out the best way to deliver the outcome.
What is an object?
A repeatable piece of code with attributes and methods.
What is a class?
A template used to create objects.
What is an instance?
An object created from a class.
What is an attribute?
A value belonging to an instance.
What is a method?
A subroutine belonging to an instance.
What is inheritance?
One class taking attributes and methods from another.
What is a superclass?
A class that is inherited by another.
What is a subclass?
A class that inherits from another.
What is a public attribute?
A variable belonging to an object.Can be read and edited from anywhere in the code.
What is a Private attribute?
A variable belonging to an object. Can only be reader edited via a public procedure.