Академический Документы
Профессиональный Документы
Культура Документы
Programming
Topic 1 - Introduction
OUTLINE MATERIALS
Topic 1 Introduction
Programming Paradigms
Unstructured Programming
Structured Programming
Object Oriented Programming
Object Oriented Programming Languages
Why C++
C++ Example
Topic 1 - Introduction
Programming Paradigms
Unstructured Programming
goto Statement
Multi Entry and Multi Exit Subprogram
Spaghetti Code
Structured Programming
Modular Programming
The programs coded with procedural usually fits in a single
code file and it is for relatively small program
If the program gets large, modular programming is
recommended
Modular programming is where large programs is broken
down into some smaller program units known as modules
Each module is designed to perform specific functions
Object-Oriented Programming
Object-Oriented Programming
Focuses on process
Top Down approach
A Single module will be split into several smaller modules
General to Specific
If the requirements are clear at the first instance we can go for Top
down approach
OOP
Focuses on object
Bottom Up approach
Lot of small modules will be grouped to form a single large module
Specific to General
In circumstances where the requirements may keep on adding, we
go for Bottom up approach
OO Programming Languages
C++ Philosophy
C++
General-purpose language, as efficient and
portable as C
support multiple programming styles
( procedural programming, data abstraction, o-o
programming, and generic programming )
providing a smooth transition from C
avoids features that are platform specific or not
general purpose
Java
Compared to C++:
no header files,
no macros,
no pointers and references,
no unions,
no operator overloading,
no templates
Object-orientation:
Classes
Inheritance
Doesnt support multiple inheritance use interface
Java (2)
Robust:
Strong typing
no pointer
garbage collection
Secure:
access control
Portable
Runs in many OS, such as Windows, Linux, iOS
Multi-threaded
C#
C# : pronounced C Sharp
It is a multi-paradigm language that include
functional, imperative, OO and component-oriented
disciplines
C# is intended to be a programming language that
is :
simple,
modern,
general-purpose,
Object-oriented
Why C++ ?
C++ is a general-purpose
programming language with a bias
towards systems programming that
is a better C
expressive
supports object-oriented programming
supports generic programming
C++ Example
My First Program in C++
include < iostream >
using nam espace std;
int m ain(){
cout< < "W elcom e to C+ + Program m ing";
cin.get();
return 0;
}
Q&A
References
THANK YOU