comp Flashcards
A program that performs a task for a user (such as calculating and
producing paychecks, word processing, or playing a game)
application software
What is a system software?
A program that manages the computer itself (such as Windows or
Linux)
It determines the exact order of instructions needed to produce desired results.
logic
What are the two types of programming?
Low Level Programming Language and HIGH LEVEL PROGRAMMING LANGUAGE
What is Low Level Programming Language?
correspond closely to the computer’s circuitry and are not as easily read
or understood.
what is HIGH LEVEL PROGRAMMING LANGUAGE?
are languages that allows
you to use English-like, easy-to-remember terms such as read, write, and
add
give the two example of Low Level Programming Language
- Assembly Language
- Machine Language
What are the 2 important paradigms in programming?
- Procedural Programming
- Object-Oriented Programming
- step-by-step process of instructions to tell the
computer - it relies on Procedures, Routines, or sub-routines
- also referred to as imperative programming
- also known as Top-Down Languages
- Example: C, COBOL, FORTRAN
the procedural programming
What is Object Oriented Programming?
- It is an approach on how to solve a problem.
- It focuses on the OBJECT that the developers
want to manipulate than the logic to
manipulate it. - Example: Java & C++
It is the the basic unit of the OOP. Something material that may be perceived by the senses (Merriam
Webster)
Object
component of a program
Object
- blueprint of an object
- it tells the virtual machine
on “how” to make an object
of that particular type.
class
things that an object “knows” about itself.
other way of saying Object.
instance variable
what are methods
things that an object “do”
give the 4 Pillars of Object Oriented Programming
The 4 Pillars of Object Oriented Programming
* Encapsulation
* Abstraction
* Inheritance
* Polymorphism
bundling up data and member function (Method) together into a single unit
* it can only be achieve if there is PRIVATE variable in a class and the other
classes has no access to the variable and can be access through class
method.
* it is mostly use for security purposes.
* sometimes called “information hiding”
encapsulation
- is the process of showing only
essential features of an object
to the outside world and hide
the other irrelevant
information - it works together with
Encapsulation
abstraction
- ability to create classes (subclass) that shares the attributes and methods
of the existing classes (parent class), but with more specific functions.
inheritance
Types of Class Inheritance in Java
- Single Inheritance - parent and child
- Multi-level inheritance - grandparent-parent-child
- Heirarchical Inheritance
- having many forms.
- a single line of code (method) can have multiple meanings, and which
meaning is to be used depends upon various factors.
Polymorphism
Types of Polymorphism in Java
Method Overriding
Method Overloading
having two methods with the same method name and parameters.
when two or more methods in one class have the same method name but different parameters.
Method Overriding
Method Overloading
the computer language innovation and development occur for two fundamental reasons:
- To adapt to changing environments and uses
- To implement refinements and improvements in the art of
programming