HND Bridging - Programming
HND Bridging - Programming
PROGRAMMING
MRS. ISHANI JAYASURIYA.
WHY BRIDGING ?
LEARN ABOUT PROGRAMMING
• A computer program is simply a set of instructions that you write to tell a computer
what to do.
• Everything a computer does is done by using a computer program.
• A computer requires programs to function, and typically executes the program’s
instructions in a central processing unit.
• A computer program is usually written by a computer programmer in
a programming language.
TYPES OF PROGRAMMING LANGUAGES
• Machine languages
• Assembly languages
• high-level languages
COMPILER AND INTERPRETER
• The name compiler is primarily used for programs that translate source code from a high-
level programming language to a lower level language (e.g., assembly language, object code,
or machine code) to create an executable program.
• The low level Machine languages are the only languages understood by computers.
• While easily understood by computers, machine languages are almost impossible for humans
to use because they consist entirely of numbers. (1s and 0s)
ASSEMBLY LANGUAGE
• An assembly language contains the same instructions as a machine language, but the
instructions and variables have names instead of being just numbers.
• The low-level assembly language is designed for a specific family of processors that
represents various instructions in symbolic code and a more understandable form
HIGH LEVEL LANGUAGE
• The main advantage of high-level languages over low-level languages is that they are easier to
read, write, and maintain.
• Ultimately, programs written in a high-level language must be translated into machine
language by a compiler or interpreter
UNDERSTAND OBJECT-ORIENTED
PROGRAMMING CONCEPTS
• Object
• Class
• Encapsulation
• Inheritance
• Polymorphism
• Abstraction
OBJECT
• An object is a self-contained entity that consists of both data and procedures to manipulate the data.
CLASS
• Combining data and functions into a single unit called class and the process is known as Encapsulation.
• Data encapsulation is important feature of a class. Class contains both data and functions. This links data
and methods together.
• Data is not accessible from the outside world and only those function which are present in the class can
access the data.
INHERITANCE
• The concept of inheritance provide the idea of reusability means we can add additional features to an
existing class without Modifying it.
• This is possible by driving a new class from the existing one. The new class will have the combined features
of both the classes.
POLYMORPHISM
• An operation may exhibited different behaviors in different instances.
• The behavior depends upon the types of data used in the operation.
ABSTRACTION
• The ability to represent data at a very conceptual level without any details.
• This involves identifying relevant data and methods
• It depends on the nature of application.
THE END