WELCOME to III SEM Date:29.6.15 Class - ECE no of present : no of absent :

Slides:



Advertisements
Similar presentations
Data Structures.
Advertisements

Programming Paradigms Introduction. 6/15/2005 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved. L1:
OBJECT ORIENTED PROGRAMMING M Taimoor Khan
EEM 480 Algorithms and Complexity by Assist. Prof. Dr. Emin Germen.
CSCE 210 Data Structures and Algorithms
ISBN Chapter 11 Abstract Data Types and Encapsulation Concepts.
Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education, Inc. All rights reserved Inheritance.
Abstract data types & object-oriented paradigm. Abstraction Abstraction: a view of an entity that includes only the attributes of significance in a particular.
Lecture 9 Concepts of Programming Languages
1 Introduction to C++ Programming Concept Basic C++ C++ Extension from C.
1 ES 314 Advanced Programming Lec 2 Sept 3 Goals: Complete the discussion of problem Review of C++ Object-oriented design Arrays and pointers.
C++ fundamentals.
DATA STRUCTURE Subject Code -14B11CI211.
Data Structures 1- Course Syllabus. 2- Introduction about Data Structures.
EC-241 OBJECT-ORIENTED PROGRAMMING (OOP)
C++ Object Oriented 1. Class and Object The main purpose of C++ programming is to add object orientation to the C programming language and classes are.
Chapter 15 – Inheritance, Virtual Functions, and Polymorphism
C++ Programming. Table of Contents History What is C++? Development of C++ Standardized C++ What are the features of C++? What is Object Orientation?
Overview of Previous Lesson(s) Over View  OOP  A class is a data type that you define to suit customized application requirements.  A class can be.
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.
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 122 – Data Structures Custom Templatized Data Structures.
Design and Analysis of Algorithms CSC201 Shahid Hussain 1.
Object Oriented Design and Programming Alan Goude Room: Sheaf 9323.
C# Programming Fundamentals of Object-Oriented Programming Fundamentals of Object-Oriented Programming Introducing Microsoft.NET Introducing Microsoft.NET.
OBJECT ORIENTED PROGRAMMING WITH C++ PART - A UNIT 16 Hours Introduction: Overview of C++, Sample C++ program, Different data types, operators, expressions,
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Chapter 5 – Dynamic Data Structure Par1: Abstract Data Type DATA STRUCTURES & ALGORITHMS Teacher: Nguyen Do Thai Nguyen
1 CSC 222: Computer Programming II Spring 2004 See online syllabus at: Course goals:
Prepared by: Elsy Torres Shajida Berry Siobhan Westby.
OBJECT-ORIENTED PROGRAMMING (OOP) WITH C++ Instructor: Dr. Hany H. Ammar Dept. of Electrical and Computer Engineering, WVU.
C++ Programming Basic Learning Prepared By The Smartpath Information systems
Introduction to c++ programming - object oriented programming concepts - Structured Vs OOP. Classes and objects - class definition - Objects - class scope.
Learners Support Publications Object Oriented Programming.
Abstraction ADTs, Information Hiding and Encapsulation.
OOP using C Abstract data types How to accomplish the task??? Requirements Details Input, output, process Specify each task in terms of input.
CS-1030 Dr. Mark L. Hornick 1 Basic C++ State the difference between a function/class declaration and a function/class definition. Explain the purpose.
1 Classes II Chapter 7 2 Introduction Continued study of –classes –data abstraction Prepare for operator overloading in next chapter Work with strings.
OO in Context Lecture 13: Dolores Zage. Confused about OO Not alone, there is much confusion about OO many programs are claimed to be OO but are not really.
ISBN Chapter 11 Abstract Data Types and Encapsulation Concepts.
1 CSE Programming in C++. 2 Overview Sign roster list Syllabus and Course Policies Introduction to C++ About Lab 1 Fill Questionnaire.
Basic Concepts of OOP.  Object-Oriented Programming (OOP) is a type of programming added to php5 that makes building complex, modular and reusable web.
Presented by Ted Higgins, SQL Server DBA An Introduction to Object – Oriented Programming.
1 C# - Inheritance and Polymorphism. 2 1.Inheritance 2.Implementing Inheritance in C# 3.Constructor calls in Inheritance 4.Protected Access Modifier 5.The.
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (2/2)
Introduction to Object Oriented Programming Lecture-3.
Structure A Data structure is a collection of variable which can be same or different types. You can refer to a structure as a single variable, and to.
1 n Object Oriented Programming. 2 Introduction n procedure-oriented programming consists of writing a list of instructions and organizing these instructions.
COMPUTER SCIENCE & TECHNOLOGY DEGREE PROGRAMME FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UVA WELLASSA ‏ Properties of Object Oriented Programming.
CSCE , SPRING 2016 INSTRUCTOR: DR. NANCY M. AMATO 1.
Chapter 12: Support for Object- Oriented Programming Lecture # 18.
CH 1-4 : INTRODUCTION ACKNOWLEDGEMENT: THE SLIDES ARE PREPARED FROM SLIDES PROVIDED WITH DATA STRUCTURES AND ALGORITHMS IN C++, GOODRICH, TAMASSIA AND.
CSCE 210 Data Structures and Algorithms
Inheritance Modern object-oriented (OO) programming languages provide 3 capabilities: encapsulation inheritance polymorphism which can improve the design,
Data Structure By Amee Trivedi.
Introduction to Computers Computer Generations
Abstract Data Types and Encapsulation Concepts
OOP What is problem? Solution? OOP
Review: Two Programming Paradigms
Object-Orientated Programming
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
Lecture 9 Concepts of Programming Languages
OOP and ADTs Chapter 14 Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education, Inc. All rights reserved.
Procedural Programming
Data Structures: Introductory lecture
Introduction to Data Structure
By Yogesh Neopaney Assistant Professor Department of Computer Science
CECS 130 Final Exam Review Session
C++ Object Oriented 1.
Lecture 9 Concepts of Programming Languages
Presentation transcript:

WELCOME to III SEM Date: Class - ECE no of present : no of absent :

SUB : OBJECT ORIENTED PROGRAMMING AND DATA STRUCTURES Code :EC6301 Handle by B.Sathya Date: Class - ECE no of present : no of absent :

AIM To understand the concepts of Object oriented programming & learn to write simple applications using C++. OBJECTIVES To comprehend the fundamentals of object oriented programming, particularly in C++. To use object oriented programming to implement data structures. To introduce linear, non-linear data structures and their applications. Date: no of present : no of absent :

SYLLABUS Date: no of present : no of absent :

Overview of C++ Structures Class Scope and Accessing Class Members Reference Variables Initialization Constructors Destructors Member Functions and Classes Friend Function Dynamic Memory Allocation Static Class Members Container Classes and Integrators Proxy Classes Overloading: (Function overloading and Operator overloading) Date: no of present : no of absent : UNIT I - DATA ABSTRACTION & OVERLOADING

Base Classes and Derived Classes Protected Members Casting Class pointers and Member Functions Overriding Public, Protected and Private Inheritance Constructors and Destructors in derived Classes Implicit Derived Class Object To Base Class Object Conversion Composition Vs. Inheritance Virtual functions – This Pointer Abstract Base Classes and Concrete Classes – Virtual Destructors – Dynamic Binding. Date: no of present : no of absent : UNIT II - INHERITANCE & POLYMORPHISM

Abstract Data Types (ADTs) List ADT array-based implementation linked list implementation singly linked lists Polynomial Manipulation Stack ADT – Queue ADT Evaluating arithmetic expressions Date: no of present : no of absent : UNIT III - LINEAR DATA STRUCTURES

Trees Binary Trees Binary tree representation and traversals Application of trees: Set representation and Union Find operations – Graph and its representations Graph Traversals – Representation of Graphs Breadth-first search – Depth-first search Connected components. Date: no of present : no of absent : UNIT IV - NON-LINEAR DATA STRUCTURES

Sorting algorithms:  Insertion sort  Quick sort  Merge sort Searching:  Linear search  Binary Search UNIT V - SORTING and SEARCHING Date: no of present : no of absent :

TEXT BOOK: 1. Deitel and Deitel, “C++, How To Program”, Fifth Edition, Pearson Education, Mark Allen Weiss, “Data Structures and Algorithm Analysis in C++”, Third Edition, Addison-Wesley, REFERENCES: 1. Bhushan Trivedi, “Programming with ANSI C++, A Step-By-Step approach”, Oxford University Press, Goodrich, Michael T., Roberto Tamassia, David Mount, “Data Structures and Algorithms in C++”, 7th Edition, Wiley Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein, "Introduction to Algorithms", Second Edition, Mc Graw Hill, Bjarne Stroustrup, “The C++ Programming Language”, 3rd Edition, Pearson Education, Date: no of present : no of absent :

▪ UNIT I - DATA ABSTRACTION & OVERLOADING Procedural Programming ▪ Programs are in the form of subroutine and the data items are global ▪ Program controls are jumps and call to subroutines ▪ E.g.., FORTRAN, COBOL Structured Programming ▪ Structured design: – Dividing a problem into smaller sub problems ▪ Program consists of multiple modules and each has a set of functions ▪ The structured design approach is also called – Top-down design – Modular programming Date: no of present : no of absent :

Object-Oriented Programming  The decomposition of a problem into number of entities called objects  It builds data (attributes) and functions (behavior) into these objects  It is based on certain concepts as shown in fig. Date: no of present : no of absent :

Before starting to learn C++ it is essential to have a basic knowledge of the concepts of Object oriented programming. Some of the important object oriented features are namely:  Objects  Classes  Inheritance  Data Abstraction  Data Encapsulation  Polymorphism  Overloading  Reusability Date: no of present : no of absent :

Objects:  Object is the basic unit of object-oriented programming.  Objects are identified by its unique name.  An object represents a particular instance of a class.  There can be more than one instance of a class.  Each instance of a class can hold its own relevant data.  An Object is a collection of data members and associated  member functions also known as methods. Date: no of present : no of absent :

Classes :  Classes are data types based on which objects are created.  Objects with similar properties and methods are grouped together to form a Class.  Thus a Class represents a set of individual objects. Characteristics of an object are represented in a class as Properties.  For example consider we have a Class of Cars under which Santro Xing, Alto and Wagan Represents individual Objects.  In this context each Car Object will have its own, Model, Year of Manufacture, Color, Top Speed, Engine Power etc., which form Properties of the Car class and the associated actions i.e., object functions like Start, Move, and Stop form the Methods of Car Class.  No memory is allocated when a class is created.  Memory is allocated only when an object is created, i.e., when an instance of a class is created. Date: no of present : no of absent :

▪ //program to read employee details and to output the data ▪ /////code begins here ///// ▪ #include // Preprocessor directiveinclude ▪ using namespace std; ▪ class employee // Class Declaration ▪ { ▪ Private: ▪ char empname[50]; ▪ int empno; ▪ ▪ public: ▪ void getvalue() ▪ { ▪ cout<<"INPUT Employee Name:"; ▪ cin>>empname; // waiting input from the Keyboard for the name Date: no of present : no of absent : A sample program to understand the basic structure of C++

▪ cout<<"INPUT Employee Number:"; ▪ cin>>empno; // waiting input from the Keyboard for the number ▪ } ▪ void displayvalue(){ ▪ cout<<"Employee Name:"<< empname << endl; // displays the employee name ▪ cout<<"Employee Number:"<< empno << endl; // displays the emloyee number ▪ } ▪ }; ▪ void main() ▪ { ▪ employee e1; // Creation of Object ▪ e1.getvalue(); // the getvalue method is being called ▪ e1.displayvalue(); // the displayvalue method is being called ▪ } ▪ ///// code ends here ////// Date: no of present : no of absent :

▪ URLS Concep Concep Date: no of present : no of absent :

SEMINAR TOPICS: Control Structures Manipulating strings Lists Topological sort Merge sort Quick sort Date: no of present : no of absent :

ASSIGNMENT TOPICS: Virtual functions and polymorphism Classes and objects AVL trees Stacks and queues Quick sort Searching Date: no of present : no of absent :

Queries ???????? Date: no of present : no of absent :

Thank you Date: no of present : no of absent :