Describe Procedural Programming
When the programmer sets out, step by step, what the computer needs to do .
Describe Object Oriented Programming
An object -orientated program is designed as a collection of objects which interact by sending messages to each other
What is a programming paradigm?
An approach to developing a solution where the program operates on data and is organised in self contained blocks called procedures. The logic of the program is activated by calling the procedures.
What is a program?
A set of instructions that tells a computer what to do in order to solve a particular problem.
What are the two main programming paradigms?
Procedural and object orientated programming
What do objects contain?
They contain the data(known as properties) and the functions(known as methods) to be used in the solution.
What is a class?
A class is like a template or a blueprint for an object, it defines the properties and methods for a group of objects.
What is inheritance?
Allows programmers to build one class based on another class, e.g. one class can inherit the characteristics of another parent class(also called superclass or base class). In this derived class(subclass) only the difference between it and the parent class need to be coded.
Encapsulation?
“hides” the data belonging to an object. The data can only be accessed through the functions associated with the object. Therefore the object-orientated approach created more efficient re-usable code.
Advantages of object orientated programming
The code for an object can be programmed and maintained independently
The code for an object can be re-used in different programs by different developers
The detail of an objects internal implementation are hidden from the outside world , so direct access to the objects data is reduced
What is a software development environment?
Software that provides programmers with an integrated set of programming tools to build an application from coding through to testing
Tools of software development environment
An editing window which allows the programmer to enter and edit code
A clipboard to copy and paste
Colour which can be used to highlight key words or syntax errors making the code easier to fix
Collapsible code sections which can make viewing large programs easier
line numbering to make it easy to distinguish between lies and can also be used to point out syntax errors
Code completion tools - when writing code corrections are suggested to the programmer to make it easy to fix and prevent syntax errors
What is a syntax error?
An error in the code entered into the code editor such as a misspelling or the omission of a symbol
What is machine code?
Instructions in binary format that can be executed directly by the computer
What is source code?
The original program code written by the programmer
What needs to happen for the computer to understand and execute instructions?
The program code needs to be translated into machine code