CHAPTER 2 Flashcards
(20 cards)
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
in Java is a concept that acquires the properties from one class to other classes; for example, the relationship between father and son. __________ in Java is a process of acquiring all the behaviors of a parent object.
Inheritance
TWO CATEGORIES OF INHERITANCE
Subclass (child) - the class that inherits from another class.
Superclass (parent) - the class being inherited from
is a process of hiding the implementation details and showing only functionality to the user.
(Another way, it shows only essential things to the user and hides the internal details, for example, sending SMS where you type the text and send the message.)
Abstraction
as related to genomics, refers to the presence of two or more variant forms of a specific DNA sequence that can occur among different individuals or populations.
Polymorphism
in the Java programming language is an ABSTRACT type that is used to describe a behavior that classes must implement. They are similar to protocols. ___________ are declared using the interface keyword, and may only contain method signature and constant declarations.
Interfaces