×
Push yourself because, no one else is going to do it for you.
--Your friends at LectureNotes
Close

Note for Object Oriented Programming Using Cpp - OOP By kishan chandra

  • Object Oriented Programming Using Cpp - OOP
  • Note
  • RD & DJ College Munger - DJCollege
  • Computer Science Engineering
  • 5 Topics
  • 27 Views
  • Uploaded 1 year ago
Kishan Chandra
Kishan Chandra
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-2

Table of contents Table of contents ........................................................................................................................... 3 Introduction ................................................................................................................................... 5 Instructions for use ...................................................................................................................... 5 Basics of C++ ................................................................................................................................. 7 Structure of a program................................................................................................................. 7 Variables. Data Types. .............................................................................................................. 11 Constants ................................................................................................................................... 17 Operators ................................................................................................................................... 21 Basic Input/Output .................................................................................................................... 29 Control Structures ...................................................................................................................... 34 Control Structures ..................................................................................................................... 34 Functions (I) .............................................................................................................................. 41 Functions (II) ............................................................................................................................. 47 Compound data types ................................................................................................................. 54 Arrays ........................................................................................................................................ 54 Character Sequences ................................................................................................................. 60 Pointers ...................................................................................................................................... 63

Text from page-3

Dynamic Memory ..................................................................................................................... 74 Data structures ........................................................................................................................... 77 Other Data Types ...................................................................................................................... 82 Object Oriented Programming .................................................................................................. 86 Classes (I) .................................................................................................................................. 86 Classes (II)................................................................................................................................. 95 Friendship and inheritance .......................................................................................................100 Polymorphism ..........................................................................................................................107 Advanced concepts .....................................................................................................................113 Templates .................................................................................................................................113 Namespaces ..............................................................................................................................120 Exceptions ................................................................................................................................123 Type Casting ............................................................................................................................127 3

Text from page-4

Preprocessor directives .............................................................................................................133 C++ Standard Library...............................................................................................................138 Input/Output with files .............................................................................................................138 Basics of C++ Structure of a program

Lecture Notes