High Level Programming Paradigms Flashcards
Explain the term derived class.
- A class that has all the attributes and methods of its superclass.
- It may also have attributes and methods of its own.
Define paradigm.
A fundamental style of computer programming, serving as a way of building the structure and elements of computer programs.
Define class.
A template definition of the methods and variables in a particular kind of object.
Define object.
A particular instance of a class where the object can be a combination of variables, functions and data structures.
Define instance.
An object.
Define attribute.
A property or characteristic of an object class used to edit or retrieve the attributes.
Define encapsulation.
The concept that data can only be access by the method provided by the class.
Define inheritance.
The concept that when a class of objects is defined, any subclass that is defined can inherit the methods and attributes of that class as well as have some of its own.
Define polymorphism.
This refers to a programming language’s ability to process objects differently depending on their data type or class. It is the ability to redefine methods for derived classes.
Define overloading.
Function overloading or method overloading is the ability to create multiple methods of the same name with different implementations.
Define constructor.
A special type of subroutine called to create an object. It prepares the new object for use, often accepting arguments that the constructor uses to set required member variables.
Define abstraction.
Abstraction is where a programmer hides all but the relevant data about an object in order to reduce complexity and increase efficiency.
What is the purpose of an object diagram?
- give information about instances of a class…
- & how they link (at specific times)
What must be added to an object diagram for it to become a communication diagram?
- message/interaction
- from one object to another
In declarative, what is the term used where found answers are set to variables?
Instantiation