Lecture 1.1.1
Lecture 1.1.1
Course Objectives
3
Scheme of Evaluation
Direct Evaluation Weightage of actual Final Weightage in Mapping with SIs Remarks
Sl No. Frequency of Task BT Levels CO Mapping Mapping with PIs
Instruments conduct Internal Assessment (ABET) (Graded/Non-Graded)
SO1 1a,1b,1c
10 marks for each
1 Assignment One per unit 10 Hard CO4,CO5 Graded
assignment
SO6
2 Exam 20 marks for one MST 2 per semester 20 Medium CO1,CO2,CO3,CO4 6a,6b Graded
3 Case Study 8 marks 1 per unit 8 Easy CO2 SO1, SO6 1c,6b Graded
NA NA NA NA
One per lecture
4 Homework NA topic (of 2 NA Non-Graded
questions)
NA NA NA NA
5 Discussion Forum NA One per unit NA Non-Graded
NA NA NA NA
6 Presentation NA NA NA Non-Graded
7 Attendance NA NA 2 NA NA NA NA Graded
Remarks
Direct Evaluation Final Weightage in Mapping with SIs
S No. Weightage of actual conduct Frequency of Task BT Levels CO Mapping Mapping with PIs (Graded/Non-
Instruments Internal Assessment (ABET)
Graded)
Unit wise Practical 1a, 1b, 1c, 6a, 6b SO1, SO6
1 15 marks 3 45 Medium 1,2,3,4,5 Graded
Evaluation
1a, 1b, 1c, 6a, 6b
2 Exam 15 marks for one MST 1 per semester 15 Medium 1,2,3 SO1, SO6 Graded
3 Attendance NA NA 2 NA NA NA NA Graded
4
CONTENTS
• Introduction to C++
Programming
• Features of object-oriented
programming
• Difference between object
oriented and procedure-
oriented programming
5
Introduction to C++ Programming
• The prime purpose of C++ programming was to add object
orientation to the C programming language, which is in itself one
of the most powerful programming languages.
8
Object
• Object is a instance of class.
• Represent a person, a place, a bank account, a table of data or any item the
program has to handle.
21/01/2025 4
Class
• Set of data & code of an object ->user-defined data type –>class.
• Once a class has been defined, we can create any number of objects belonging to
that class.
• A class is collection of objects of similar type.
• Syntax used to create an object is no different than the syntax used to create an
integer object in C.
21/01/2025 5
Data Abstraction & Encapsulation
• Wrapping up of data & functions into a single unit (called class) -encapsulation.
• Data is not accessible to the outside world
• Functions which are wrapped in the class can access it.
• Abstraction - act of representing essential features without background details.
Fig.2. Encapsulation
21/01/2025 6
Information Hiding
• Insulation of data from direct access by the program – data or information hiding.
• Attributes are - data members because they hold information.
• Functions are - member functions.
21/01/2025 7
Inheritance
• Process by which objects of one class acquire the properties of objects of another
class.
• Each derived class shares common characteristics with the class from which it is
derived(fig.4).
• Inheritance provides reusability and expandability.
21/01/2025
Fig. 5. Polymorphism 9
Difference between object oriented
and procedure-oriented programming
Procedure-oriented programming Object-oriented programming
Emphasis is on doing things. Emphasis is on data rather than procedure.
Large programs divided into smaller functions. Programs are divided into objects.
Functions can share global data. Functions that operate on the data of an object are tied
together in the data structure.
Data move openly. Data is hidden.
Functions transform data from one form to another. Objects may communicate with each other through
functions.
Top-down approach in program design. Bottom-up approach in program design.
15
Summary
16
Frequently Asked question
Q1 What are the various features of Object-oriented programming?
Answer: Object-oriented programming aims to implement real-world entities like inheritance, hiding,
polymorphism, etc in programming. The main aim of OOP is to bind together the data and the
functions that operate on them so that no other part of the code can access this data except that
function.
17
3) Database Software
C++ is also used in writing database management software. The two most popular
databases MySQL and Postgres are written in C++.
4) Operating Systems
The fact that C++ is a strongly typed and fast programming language makes it an ideal
candidate for writing operating systems. In addition to this, C++ has a wide collection of
system-level functions that also help in writing low-level programs.
5) Browsers
Browsers are mostly used in C++ for rendering purposes. Rendering engines need to be
faster in execution as most people do not like to wait for the web page to be loaded. With
the fast performance of C++, most browsers have their rendering software written in C+
+.
6) Advanced Computation And Graphics
C++ is useful in developing an application that requires high-performance image
processing, real-time physical simulations, and mobile sensor applications that need high
performance and speed.
7) Banking Applications
As C++ aids in concurrency, it becomes the default choice for banking applications that
require multi-threading, concurrency, and high performance.
18
8) Cloud/Distributed System
Cloud storage systems that are extensively used nowadays work close to the hardware. C+
+ becomes a default choice for implementing such systems as it is close to the hardware.
C++ also provides multithreading support that can build concurrent applications and load
tolerance.
9) Compilers
Compilers of various high-level programming languages are written either in C or C++. The
reason is that both C and C++ are low-level languages that are close to hardware and are
able to program and manipulate the underlying hardware resources.
10) Embedded Systems
Various embedded systems like smartwatches, medical equipment systems use C++ to
program as it is closer to the hardware level and can provide a lot of low-level function calls
when compared to the other high-level programming languages.
11) Enterprise Software
C++ is used in developing many enterprise software as well as advanced applications like
flight simulation and radar processing.
12) Libraries
When we require very high-level mathematical computations, performance and speed
become important. Hence most of the libraries use C++ as their core programming
language. Most high-level machine language libraries use C++ as backend.
19
Assessment Questions:
1. Who created C++?
a) Bjarne Stroustrup
b) Dennis Ritchie
c) Ken Thompson
d) Brian Kernighan
2. A language which has the capability to generate new data types are called ______________
a) Extensible
b) Overloaded
c) Encapsulated
d) Reprehensible
https://www.softwaretestinghelp.com/cpp-applications/
21
REFERENCES
TEXT BOOKS
T1 E Balagurusamy., “Object Oriented Programming in C++”, Tata McGraw-Hill.
T2 Robert Lafore, “Object Oriented Programming in C++”, Waite Group.
REFERENCE BOOKS
R1 Herbert Schildt , “C++- The Complete Reference”, Tata McGraw-Hill 2003, New
Delhi.
R2 Bjarne Stroustrup: “The C++ Programming Language” (4th Edition). Addison-
Wesley.
R3 Ravichandran , “Programming with C++”,Tata McGraw-Hill Education.
R4 Joyce M. Farrell,” Object Oriented Programming Using C++”, Learning.
R5 Programming Languages: Design and Implementation (4th Edition), by Terrence W.
Pratt, Marvin V. Zelkowitz, Pearson.
R6 Programming Language Pragmatics, Third Edition, by Michael L. Scott, Morgan
Kaufmann.
Websites:
1. https://www.sanfoundry.com/cplusplus-programming-questions-answers-bas
ics/
2. https://www.cppbuzz.com/100-mcq-on-c++ 22
THANK YOU