283x Filetype PDF File size 0.09 MB Source: www.cse.iitm.ac.in
C++ Primer
CS 3100
Paradigms of Programming
Venkatram Pampana
Outline
● Programming Paradigms
● C vs C++
● A sample Program
● OOPS concepts
● Programming Tips
● References
2
Programming Paradigms
● Procedural Paradigm
– A programming paradigm, based upon the concept of the procedure calls.
E.g: C, C++.
● Object-oriented Paradigm
– A programming paradigm that represents the concept of "objects" that have
data fields(attributes) and associated procedures(methods) E.g: C++, Java.
● Functional Paradigm
– A programming paradigm that views all subprograms as functions in the
mathematical sense-informally, they take in arguments and return a single
solution. E.g: Lisp.
● Logic Paradigm
– A programming paradigm that is based on formal logic. A program written in a
logic programming language is a set of sentences in logical form, expressing
facts and rules about some problem domain. E.g: Prolog.
3
C vs C++
C C++
● C follows the procedural ● C++ is a multi-paradigm
programming paradigm language
● C is a low-level language ● C++ is a middle-level
(less user-friendly) language
● Does not support any ● Supports extra features
special features like data hiding, function
overloading etc.
4
no reviews yet
Please Login to review.