CHAPTER 2 Flashcards
Different types of Programming Paradigms
Compiled language
Interpretative language
Application language
Scripting language
Integrative Coding
Classes and Object
Constructor
Destructor
Inheritance
Abstraction
Polymorphism
Interfaces
HOW DOES COMPILER WORKS?
SOURCE CODE -> COMPILER -> MACHINE CODE –> OUTPUT
WHAT IS THE OTHER TERM FOR PROGRAM?
it is also called BINARY, EXECUTABLE
HOW DOES INTERPRETER WORKS?
SOURCE CODE –> INTERPRETER –> OUTPUT
what is the fastest to run a program?
COMPILED PROGRAM
what is the slowest to run a program?
INTERPRETED PROGRAM
is a language in which the implementations execute instructions directly without earlier compiling a program into machine language.
Interpretative language
A language used to write instructions for the computer. It lets the programmer express data processing in a symbolic manner without regard to machine-specific details. From Source Code to Machine Language.
Application language
is a programming language that employs a high-level construct to interpret and execute one command at a time.
(In general, it is easier to learn and faster to code in than more structured and compiled languages such as C and C++.)
Scripting language
is a technique which enable dynamic website and application development through the integration of programming and mark up languages into one for example html with XML, JavaScript and CSS, XML with PHP, C# with XML, XML with XSLT and so on to meet the interactive and specific dynamic end-user requirements.
Integrative Coding
A _____defines _____properties including a valid range of values, and a default value. A _____also describes object behavior. An ______is a member or an “instance” of a class. An ______has a state in which all of its properties have values that you either explicitly define or that are defined by default settings.
Classes and Object
What is Class?
Class - (is like a PERSON)
Attributes - (NAME, AGE, GENDER, ETC.)
Functionality - (WALK, EAT, SLEEP, WORK)
is a special method of a class or structure in object-oriented programming that initializes a newly created object of that type. Whenever an object is created, the __________ is called automatically.
(is a special type of member function that is called automatically when an object is created; a _________has the same name as that of the class and it does not have a return type. )
constructor
TWO TYPES OF CONTRUCTORS
DEFAULT CONSTRUCTOR
PARAMETERIZED CONSTRUCTOR
is a member function that is invoked automatically when the object goes out of scope or is explicitly destroyed by a call to delete.
(has the same name as the class, preceded by a tilde ( ~ ). )
Destructor