100% tevredenheidsgarantie Direct beschikbaar na betaling Zowel online als in PDF Je zit nergens aan vast
logo-home
Class notes Computer science 083 (Computerscience083) €11,34
In winkelwagen

College aantekeningen

Class notes Computer science 083 (Computerscience083)

 11 keer bekeken  0 keer verkocht

"Hello everyone! I am excited to share my computer science notes with you all. These notes cover a wide range of topics including programming languages, algorithms, data structures, and more. I have spent countless hours compiling these notes from various sources and personal experience, and I hope...

[Meer zien]

Voorbeeld 4 van de 138  pagina's

  • 24 april 2023
  • 138
  • 2020/2021
  • College aantekeningen
  • Md. soheb
  • Alle colleges
Alle documenten voor dit vak (1)
avatar-seller
soheb4897
Object Oriented Programming Using
C++




Hand Writing Notes
ON
Object Oriented Programming Using C++


Prepared by
Md. Soheb




Notes by Soheb for Computer science and DSA courses

, Object Oriented Programming
Module I
Introduction to object oriented programming, user defined types, structures, unions,
polymorphism, encapsulation. Getting started with C++ syntax, data-type, variables,
strings, functions, default values in functions, recursion, namespaces, operators, flow
control, arrays and pointers.


Module II
Abstraction mechanism: Classes, private, public, constructors, destructors, member data,
member functions, inline function, friend functions, static members, and references.
Inheritance: Class hierarchy, derived classes, single inheritance, multiple, multilevel, hybrid
inheritance, role of virtual base class, constructor and destructor execution, base
initialization using derived class constructors.
Polymorphism: Binding, Static binding, Dynamic binding, Static polymorphism: Function
Overloading, Ambiguity in function overloading, Dynamic polymorphism: Base class
pointer, object slicing, late binding, method overriding with virtual functions, pure virtual
functions, abstract classes.
Operator Overloading: This pointer, applications of this pointer, Operator function, member
and non member operator function, operator overloading, I/O operators. Exception
handling: Try, throw, and catch, exceptions and derived classes, function exception
declaration, unexpected exceptions, exception when handling exceptions, resource
capture and release.


Module III
Dynamic memory management, new and delete operators, object copying, copy
constructor, assignment operator, virtual destructor.
Template: template classes, template functions.
Standard Template Library: Fundamental idea about string, iterators, hashes, iostreams
and other types.
Namespaces: user defined namespaces, namespaces provided by library. Object
Oriented Design, design and programming, role of classes.




CONTENTS
Lecture 01: Introduction
Lecture 02: Object Oriented Programming
Lecture 03: BASIC CONCEPTS OF OBJECTS ORIENTED PROGRAMMING

2 P.T.O

,Lecture 04: BENEFITS OF OOP
Lecture 05: Basics of C++
Lecture 06: Tokens
Lecture 07: Basic Data types in C++
Lecture 08: Symbolic Constant
Lecture 09: Operators
Lecture 10: Control Structures
Lecture 11: Functions in C++
Lecture 12: Function Overloading
Lecture 13: Class
Lecture 14: Member Function
Lecture 15: Nesting of Member function
Lecture 16: Array with Class
Lecture 17: Static Data Member
Lecture 18: Friendly functions
Lecture 19: Returning Objects
Lecture 20: Constructors
Lecture 21: Destructors
Lecture 22 & 23: Operator Overloading
Lecture 24: Type Conversion
Lecture 25: Class to Basic type
Lecture 26: Inheritance
Lecture 27: Multilevel Inheritance
Lecture 28: Hierarchical Inheritance
Lecture 29: Virtual Base Class
Lecture 30: Polymorphism
Lecture 31: Virtual functions
Lecture 32: Pure Virtual Functions
Lecture 33: C++ function overriding
Lecture 34: Exception Handling
Lecture 35: Array reference out of bound
Lecture 36: Containership in C++
Lecture 37: Template
Lecture 38: Class Template
Lecture 39: Virtual destructors
Lecture 40: Managing Console I/O
Lecture 41: Namespaces
Lecture 42: New & Delete Operators

Module-1:

LECTURE-1

Introduction:

Programmers write instructions in various programming languages to perform their computation tasks
such as:
(i) Machine level Language
3 P.T.O

, (ii) Assembly level Language
(iii) High level Language

Machine level Language :
Machine code or machine language is a set of instructions executed directly by a computer's central
processing unit (CPU). Each instruction performs a very specific task, such as a load, a jump, or an
ALU operation on a unit of data in a CPU register or memory. Every program directly executed by a
CPU is made up of a series of such instructions.

Assembly level Language :
An assembly language (or assembler language) is a low-level programming language for a computer,
or other programmable device, in which there is a very strong (generally one-to-one) correspondence
between the language and the architecture's machine code instructions. Assembly language is
converted into executable machine code by a utility program referred to as an assembler; the
conversion process is referred to as assembly, or assembling the code.

High level Language :
High-level language is any programming language that enables development of a program in much
simpler programming context and is generally independent of the computer's hardware architecture.
High-level language has a higher level of abstraction from the computer, and focuses more on the
programming logic rather than the underlying hardware components such as memory addressing and
register utilization.

The first high-level programming languages were designed in the 1950s. Now there are dozens of
different languages, including Ada , Algol, BASIC, COBOL, C, C++, JAVA, FORTRAN, LISP,
Pascal, and Prolog. Such languages are considered high-level because they are closer to human
languages and farther from machine languages. In contrast, assembly languages are considered
lowlevel because they are very close to machine languages.

The high-level programming languages are broadly categorized in to two categories:

(iv) Procedure oriented programming(POP) language.
(v) Object oriented programming(OOP) language.




• Procedure Oriented Programming Language


In the procedure oriented approach, the problem is viewed as sequence of things to be done such as
reading , calculation and printing.


4 P.T.O

Voordelen van het kopen van samenvattingen bij Stuvia op een rij:

Verzekerd van kwaliteit door reviews

Verzekerd van kwaliteit door reviews

Stuvia-klanten hebben meer dan 700.000 samenvattingen beoordeeld. Zo weet je zeker dat je de beste documenten koopt!

Snel en makkelijk kopen

Snel en makkelijk kopen

Je betaalt supersnel en eenmalig met iDeal, creditcard of Stuvia-tegoed voor de samenvatting. Zonder lidmaatschap.

Focus op de essentie

Focus op de essentie

Samenvattingen worden geschreven voor en door anderen. Daarom zijn de samenvattingen altijd betrouwbaar en actueel. Zo kom je snel tot de kern!

Veelgestelde vragen

Wat krijg ik als ik dit document koop?

Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.

Tevredenheidsgarantie: hoe werkt dat?

Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.

Van wie koop ik deze samenvatting?

Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper soheb4897. Stuvia faciliteert de betaling aan de verkoper.

Zit ik meteen vast aan een abonnement?

Nee, je koopt alleen deze samenvatting voor €11,34. Je zit daarna nergens aan vast.

Is Stuvia te vertrouwen?

4,6 sterren op Google & Trustpilot (+1000 reviews)

Afgelopen 30 dagen zijn er 52510 samenvattingen verkocht

Opgericht in 2010, al 14 jaar dé plek om samenvattingen te kopen

Start met verkopen
€11,34
  • (0)
In winkelwagen
Toegevoegd