Programming Paradigms

Slides:



Advertisements
Similar presentations
Object Oriented Programming
Advertisements

Understand and appreciate Object Oriented Programming (OOP) Objects are self-contained modules or subroutines that contain data as well as the functions.
Department of Computer Engineering Faculty of Engineering, Prince of Songkla University 1 5 – Abstract Data Types.
Object Oriented Programming A brief review of what you should know about OOP.
Introduction to Programming with Java “Object Oriented” Programming Compiling & Running Java Programs.
WEL COME PRAVEEN M JIGAJINNI PGT (Computer Science) MCA, MSc[IT], MTech[IT],MPhil (Comp.Sci), PGDCA, ADCA, Dc. Sc. & Engg.
C++ fundamentals.
OBJECT ORIENTED PROGRAMMING IN C++ LECTURE
OOP- OBJECT OBJECT PROGRAMMING By KRATI SHARMA 02 XI-B ✏✏✏✏ ☺☻☺☻☺☻☺ ✏✏✏✏
Object Oriented Programming Development
C++ Programming. Table of Contents History What is C++? Development of C++ Standardized C++ What are the features of C++? What is Object Orientation?
Introduction to Object-oriented programming and software development Lecture 1.
GENERAL CONCEPTS OF OOPS INTRODUCTION With rapidly changing world and highly competitive and versatile nature of industry, the operations are becoming.
An Object-Oriented Approach to Programming Logic and Design
CONCEPTS OF OBJECT ORIENTED PROGRAMMING. Topics To Be Discussed………………………. Objects Classes Data Abstraction and Encapsulation Inheritance Polymorphism.
Introduction to Object Oriented Programming. Object Oriented Programming Technique used to develop programs revolving around the real world entities In.
School of Computer Science & Information Technology G6DICP - Lecture 22 The Theory of Object Oriented Programming.
Prepared by: Elsy Torres Shajida Berry Siobhan Westby.
Design.ppt1 Top-down designs: 1. Define the Problem IPO 2. Identify tasks, Modularize 3. Use structure chart 4. Pseudocode for Mainline 5. Construct pseudocode.
Principles of Software Development 1 Principles Of Software Design and Development Types of language / Choosing a language.
Learners Support Publications Object Oriented Programming.
Programming Paradigms Lecturer Hamza Azeem. What is PP ? Revision of Programming concepts learned in CPLB Learning how to perform “Object-Oriented Programming”
9-Dec Dec-15  INTRODUCTION.  FEATURES OF OOP.  ORGANIZATION OF DATA & FUNCTION IN OOP.  OOP’S DESIGN.
 Objects versus Class  Three main concepts of OOP ◦ Encapsulation ◦ Inheritance ◦ Polymorphism  Method ◦ Parameterized ◦ Value-Returning.
1 OOP - An Introduction ISQS 6337 John R. Durrett.
Introduction to OOP CPS235: Introduction.
Classes, Interfaces and Packages
Basic Concepts of OOP.  Object-Oriented Programming (OOP) is a type of programming added to php5 that makes building complex, modular and reusable web.
OOPS CONCEPT.  OOPS  Benefits of OOPs  OOPs Principles  Class  Object Objectives.
Introduction to Classes Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg.
Exceptions and Handling
Before Object Oriented Programming (OOP) was popular, computer software was written in a Procedural style. This meant that the application/program was.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
CPRG 215 Introduction to Object-Oriented Programming with Java Module 3- Introduction to Object Oriented Programming concepts Topic 3.1 Fundamental Concepts.
Introduction to Object-oriented Programming
Modern Programming Tools And Techniques-I
Programming paradigms
Programming Paradigms
Object-Orientated Programming
Visit for more Learning Resources
Object Oriented Programming
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING
Sachin Malhotra Saurabh Choudhary
OOP: Object-oriented programming
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
Objects as a programming concept
Sections Basic Concepts of Programming
Programming in Java Sachin Malhotra, Chairperson, PGDM-IT, IMS Ghaziabad Saurabh Chaudhary, Dean, Academics, IMS Ghaziabad.
The Object-Oriented Thought Process Chapter 1
GENERAL OOPs CONCEPTS.
Introduction to C++ Introduced by Bjarne Stroustrup of AT&T’s Bell Laboratories in mid-1980’s Based on C C++ extended C to support object-oriented programming.
OOP What is problem? Solution? OOP
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
PRINCIPALES OF OBJECT ORIENTED PROGRAMMING
Types of Programming Languages
An Overview of Java.
3 Fundamentals of Object-Oriented Programming
Object Oriented Analysis and Design
OOP’S Concepts in C#.Net
PROGRAMMING PARADIGMS
Procedural Programming
Object oriented vs procedural programming
Introduction to C++ Introduced by Bjarne Stroustrup of AT&T’s Bell Laboratories in mid-1980’s Based on C C++ extended C to support object-oriented programming.
Principles of object – oriented programming UNIT-1 Chapter-1.
Workshop for Programming And Systems Management Teachers
Object-Oriented Programming
CPS120: Introduction to Computer Science
មជ្ឈមណ្ឌលកូរ៉េ សហ្វវែរ អេច អ ឌី
Object Oriented Programming(OOP)
C++ Object Oriented 1.
Presentation transcript:

Programming Paradigms Procedural programming Task based Revolves around writing functions (procedures) to accomplish an overall goal Supported by early programming languages C, Cobol, Fortram, Basic, … Object Oriented programming Information (data) based “Objects” represent both data and its manipulation Supported by many modern programming languages C++, Java, Python, JavaScript, …

Procedural programming Task-based approach to programming Problem is broken down into a series of (sub)tasks Procedures are written to accomplish each task Data (information) manipulated by the procedures Procedures are assembled and run to accomplish overall goal Like a recipe Advantages Intuitive, can lead to fast development Disadvantages Large/evolving projects can result in code that is difficult to maintain/modify Simple changes can affect many sections of code

Object Oriented Programming Object-based approach Focus is on defining data types And procedures for manipulating the data Advantages Objects are self-contained Insulated from changes to other objects Leads to better-organized, more easily supported code Disadvantages Less intuitive, requires more planning

Features of OOP Encapsulation Polymorphism Inheritance Continued … data stored in module “objects” accessed via “methods” Polymorphism method behavior can depend on usage Inheritance parent/child relationship child “inherits” properties of parent Continued …

Features of OOP - Encapsulation Data stored in modular blocks called classes Data accessible via procedures also contained in the classes Internal data not directly accessible (only through procedures) Advantage: changes can be localized in an object Will not affect other parts of a program

Features of OOP - Polymorphism Behavior depends on usage Functions can be “overloaded” Different behavior for different argument lists Different behavior for different argument types or sub-types Ex: General/poly.cpp addition (‘+’ operator) using int’s, float’s, and even strings Functions can be made type-independent Via “templates”

Features of OOP - Inheritance Objects can be based on another object “group” properties are inherited Existing properties can be modified New properties can be added Hierarchical Example: Animals -> Mammals -> Dogs