Beruflich Dokumente
Kultur Dokumente
FUNDAMENTALS
OF
PROGRAMMING
LANGUAGE
KNOWLEDGE
ABOUT
LANGUAGES
LANGUAGES
Representation of expressions through
in meaningful manner.
3/15/2018 3
Semantics of language is meaning of
the syntax .
3/15/2018 4
TYPES OF LANGUAGES
NATURAL LANGUAGE
Language that human can understand.
PROGRAMMING LANGUAGE
Language that are used for
programming the computer
3/15/2018 5
CLASSIFICATION OF
PROGRAMING LANGUAGES
Programming Language
3/15/2018 6
LOW LEVEL LANGUAGES
Machine Language:
Language which uses the binary
digits i.e. 0 or 1.
Assembly Language:
Language which uses mnemonics.
E.g. add c..
3/15/2018 7
Machine dependent.
Difficult to debug.
3/15/2018 8
Difficult to write programs
Fast in execution.
3/15/2018 9
HIGH LEVEL LANGUAGE
Easy to debug
3/15/2018 10
Require compiler or interpreter for
translation.
Slow in execution
e.g. PASCAL, FORTRAN etc.
3/15/2018 11
MIDDLE LEVEL LANGUAGE
Easy to debug
3/15/2018 12
Require compiler or interpreter for
translation
Fast in execution
e.g. C, C++
3/15/2018 13
CLASSIFICATION OF LANGUAGES
BASED ON APPROACH USED
Procedure -Oriented Programming
languages
e.g. PASCAL,C etc.
3/15/2018 14
PROCEDURE ORIENTED
PROGRAMMING LANGUAGE
3/15/2018 15
Most of the functions share global data.
3/15/2018 16
Functions transform data from one form to
another.
3/15/2018 17
OBJECT
ORIENTED
PROGRAMMING
PARADIGM
OBJECT ORIENTED
PROGRAMMING PARADIGM
Emphasis is on data rather than procedure.
as objects.
3/15/2018 19
Data structure are designed such that they
characterize the objects
3/15/2018 20
Data is hidden and cannot be accessed by
external functions
3/15/2018 21
New data and functions can be easily added
whenever necessary.
3/15/2018 22
CONCEPTS
OF
OBJECT
ORIENTED
LANGUAGES
CONCEPTS OF OBJECT-
ORIENTED PROGRAMMING
Objects
Classes
Data Abstraction
Data Encapsulation
3/15/2018 24
Inheritance
Polymorphism
Dynamic Binding
3/15/2018 25
OBJECTS
3/15/2018 26
must handle.Program objects should be
3/15/2018 27
CLASSES
type.
3/15/2018 29
ENCAPSULATION
data hiding.
3/15/2018 31
DATA ABSTRACTION
3/15/2018 33
INHERITANCE
3/15/2018 34
In OOP, concept of inheritance provides
3/15/2018 35
POLYMORPHISM
different instances.Polymorphism is
3/15/2018 36
extensively used in implementing
inheritance.
3/15/2018 37
DYNAMIC BINDING
3/15/2018 38
procedure call is not known until the time
3/15/2018 39
MESSAGE
COMMUNICATION
An object - oriented program consists of a set
of objects that communicate with each
other.The process of programming in an
object -oriented language therefore involves
the following basic steps :
3/15/2018 40
Creating classes that define objects and
their behavior.
3/15/2018 41
BENEFITS OF OOP
classes.
3/15/2018 43
interference.
3/15/2018 45
us to capture more details of a model in
implementable form.
3/15/2018 46
Virtual Function
another.
3/15/2018 48