Principles of programming Flashcards
What is a class?
a data structure that can hold data and functions; a template for creating objects
What is an object?
Something produced according to the template of class
What is a method?
Controls the behaviour of a class
What is encapsulation?
Data is hidden (encapsulated) in a function. Outside world will call the function but won’t necessarily know what’s in it
Can’t access data directly- hidden so it’s safe from accidental alteration
What are UML diagrams?
Unified modelling language
- Standard way to design and plan OOP system
- Allows systems analysts, programmers and clients to communicate
- Makes system maintenance easier
What are features of procedural language?
- Work sequentially
- Made up of statements e.g selection, iteration, procedures
- Made up of a series of commands
- Simplest programming paradigm
- Use statements to change state of program
e. g Python, C
What are features of visual programming language?
Uses intuitive user interfaces to help build program
not ideal for larger more advanced problems
less space for code as taken up by interface
uses elements of event driven paradigm.
e.g scratch, blocky