0% found this document useful (0 votes)
6 views

HND Bridging - Programming

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

HND Bridging - Programming

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 19

HND BRIDGING

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.

• An interpreter is a computer program that is used to directly execute program instructions


code written using one of the many high-level programming languages. It Reads the source
code line by line
MACHINE LANGUAGES

• 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-oriented refers to a programming language, system or software methodology that is


built on the concepts of logical objects.
• It works through the creation, utilization and manipulation of reusable objects to perform a
specific task, process or objective.
• An object-oriented based system is modeled and created through the use of objects, where
each object's class instance has specific attributes and behaviors, and the relative methods or
behaviors are called to manipulate or utilize such a system
OBJECT :
• In programming terms, an object is a self-contained component that contains properties and
methods needed to make a certain type of data useful.
• An object’s properties are what it knows and its methods are what it can do.
CLASS:
• A class is a blueprint or template or set of instructions to build a specific type of object.
• Every object is built from a class. Each class should be designed and programmed to accomplish
one, and only one, thing.
FEATURES OF OOP:

• 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

• Class is a collection of objects of similar type.


• Objects are variables of the type class.
• Once a class has been defined, we can create any number of objects belonging to that class. Eg: grapes
bannans and orange are the member of class fruit.
ENCAPSULATION

• 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

You might also like