SlideShare a Scribd company logo
Basic Concepts of OOPs
Course Name:
Object Oriented
Programming with
C/C++
Course Code:
19008600
Computer Science
Engineering(Sem-III)
Faculty Name:
Zaiba Khan
Assistant Professor(CSE)
School of
Engineering &
Technology
Why do we need Object Oriented
Programming ?
 Object Oriented Programming was
developed because limitations were
discovered in earlier approaches to
programming.
Procedure Oriented Programming(POP)
 C, Pascal, Fortan and similar
languages are procedural languages.
 Each statement in the language tells
the computer to do something:
◦ Get some input
◦ Add these numbers
◦ Divide by 6
◦ Display that output
A program in a procedural language is a list
of instructions.
Procedure Oriented Programming(POP)
 Division into Functions:
◦ Procedural program is divided into
functions.
◦ Each function has clearly defined purpose
and a clearly defined interface to the other
functions in the program.
◦ It can be further extended by grouping a
number of functions together into a larger
entity called a module.
What are
functions?
Procedure Oriented Programming(POP)
 Division into functions:
Procedure Oriented Programming(POP)
 Characteristics:
◦ Emphasis is on doing things (Algorithms)
◦ Large programs are divided into smaller
programs known as functions.
◦ Most of the functions share global data.
◦ Functions transform data from one form to
another.
◦ Top-down approach is used in program
design.
What is Top-
down
approach?
Procedure Oriented Programming(POP)
 Top Down Approach:
◦ It is a process of breaking the overall
procedure or task into component parts
(modules) then subdivide each component
module until the lowest level of detail has
been reach.
◦ For Example: The payroll system of a
company can contain the following modules
or tasks
 Master file
 Earning
 Deductions
 Taxing
 Net Earning
 Print reports
Procedure Oriented Programming(POP)
 Drawbacks:
◦ Since every function has complete access
to the global variables, the new
programmer can corrupt the data accidently
by creating functions.
◦ We can access the data of one function from
other since, there is no protection.
◦ In large data program it is very difficult to
identify what data is used by which function.
◦ Similarly, if new data is to be added, all the
function needed to be modified to access the
data.
◦ It does not model with the real world problem
very well.
Object Oriented
Programming(OOP)
 OOP was introduced to overcome the
flaws in the procedural approach to
programming.
 Such as like reusability and
maintainability.
 The basic fundamental idea behind
OOP programming is to combine into
single unit both data and the functions
that operate on the data.
 Such unit is called Object.
Object Oriented
Programming(OOP)
 In OOP, problem is divided into the
number of entities called objects and
then builds data and functions around
these objects.
 Data of an object can be accessed
only by the functions associated with
that object.
 Communication of the objects done
through function.
Object Oriented Paradigm
Object Oriented
Programming(OOP)
 Characteristics:
◦ Emphasis more on data rather than
procedure.
◦ Programs are divided into entities called
object.
◦ Data is hidden and cannot be accessed by
external functions.
◦ Objects communicate with each through
functions.
◦ New data and functions can be easily added
whenever necessary .
◦ Follow bottom up design in program design.
Object Oriented
Programming(OOP)
 Bottom Up Approach:
◦ It is a reverse process of Top Down approach.
◦ Lower level task are carried out first and then
integrated to provide the solution of a single
program.
◦ Lower level structures of a program are evolved first.
◦ After that higher level structures are created.
◦ It promotes code reuse.
Summary:
Difference between POP & OOP
Procedural Oriented
Programming(POP)
 In POP, program is divided into
small parts called functions.
 In POP, Importance is not given to
data but to functions as well as
sequence of actions to be done.
 POP follows Top Down approach.
 POP does not have any access
specifier.
 In POP, Data can move freely from
function to function in the system.
 To add new data and function in
POP is not so easy.
 POP does not have any proper way
for hiding data so it is less secure.
 Example of POP are : C, VB,
FORTRAN, Pascal.
Object Oriented Programming(OOP)
 OOP, program is divided into parts
called objects.
 In OOP, Importance is given to the
data rather than procedures or
functions because it works as a real
world.
 OOP follows Bottom Up approach.
 OOP has access specifiers named
Public, Private, Protected, etc.
 In OOP, objects can move and
communicate with each other
through member functions.
 OOP provides an easy way to add
new data and function.
 OOP provides Data Hiding so
provides more security.
 Example of OOP are : C++, JAVA,
VB.NET, C#.NET.
Character Set in C++
 There are four types of Character Set:
Character Set
1.Ank Letters Uppercase A-Z
Lowercase a-z
2. Digits All digits 0-9
3. Special
Characters
All symbols , : ,
;,!, !,$, &,,*,%,@,
{},[],()
4. White Spaces Blank Space,
Horizontal tab,
New Line
Keywords in C++
Constant in C++
 It is an identifier whose value cannot be changed at the
execution time of program.
 It can simply be defined as “constant “ can be used to
represent as fixed values in a C++ program. Classification is
as follows:
Variables in C++
 Variables are used to store values.
 Variable name is the name of memory location where value is
store.
 It must be alphanumeric , only underscore is allowed in a
variable name.
Syntax:
Data-Type Variable Name
Examples:
int a;
float b;
char c;
Initialization of Variable:
Means assigning value to declared variable.
For example:
A= 10;
B=4.5;
C=‘a’;
Do You Know?
If no input
values are
assigned by the
user than
system will gives
a default value
called garbage
value.
Data Types in C++
 A keyword to identify type of data. It is used for storing the
input of the program into the main memory (RAM)of the
computer.
 There are three categories of data type. They are
Data Types in C++(Cont.)
 Primitive Data Types
◦ These are the data types whose variable can hold maximum one value at a time.
 Derived Data Types
◦ They are derived from fundamental data type.
◦ It allow us to store multiple values of same type in one variable BUT never allows to
store many values of different types.
Ad

More Related Content

What's hot (20)

Encapsulation C++
Encapsulation C++Encapsulation C++
Encapsulation C++
Hashim Hashim
 
C++ Inheritance Tutorial | Introduction To Inheritance In C++ Programming Wit...
C++ Inheritance Tutorial | Introduction To Inheritance In C++ Programming Wit...C++ Inheritance Tutorial | Introduction To Inheritance In C++ Programming Wit...
C++ Inheritance Tutorial | Introduction To Inheritance In C++ Programming Wit...
Simplilearn
 
File handling in C++
File handling in C++File handling in C++
File handling in C++
Hitesh Kumar
 
Polymorphism in C++
Polymorphism in C++Polymorphism in C++
Polymorphism in C++
Rabin BK
 
Constructors and Destructor in C++
Constructors and Destructor in C++Constructors and Destructor in C++
Constructors and Destructor in C++
International Institute of Information Technology (I²IT)
 
Support for Object-Oriented Programming (OOP) in C++
Support for Object-Oriented Programming (OOP) in C++Support for Object-Oriented Programming (OOP) in C++
Support for Object-Oriented Programming (OOP) in C++
Ameen Sha'arawi
 
Object-oriented Programming-with C#
Object-oriented Programming-with C#Object-oriented Programming-with C#
Object-oriented Programming-with C#
Doncho Minkov
 
OOP C++
OOP C++OOP C++
OOP C++
Ahmed Farag
 
Class and object in C++
Class and object in C++Class and object in C++
Class and object in C++
rprajat007
 
Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++
Vishal Patil
 
OOP in C++
OOP in C++OOP in C++
OOP in C++
ppd1961
 
Type casting in java
Type casting in javaType casting in java
Type casting in java
Farooq Baloch
 
Input and output in C++
Input and output in C++Input and output in C++
Input and output in C++
Nilesh Dalvi
 
Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Language
satvirsandhu9
 
07. Virtual Functions
07. Virtual Functions07. Virtual Functions
07. Virtual Functions
Haresh Jaiswal
 
Constructors and destructors
Constructors and destructorsConstructors and destructors
Constructors and destructors
Vineeta Garg
 
Python Modules
Python ModulesPython Modules
Python Modules
Nitin Reddy Katkam
 
virtual function
virtual functionvirtual function
virtual function
VENNILAV6
 
Files and streams
Files and streamsFiles and streams
Files and streams
Pranali Chaudhari
 
Java interfaces
Java interfacesJava interfaces
Java interfaces
Raja Sekhar
 
C++ Inheritance Tutorial | Introduction To Inheritance In C++ Programming Wit...
C++ Inheritance Tutorial | Introduction To Inheritance In C++ Programming Wit...C++ Inheritance Tutorial | Introduction To Inheritance In C++ Programming Wit...
C++ Inheritance Tutorial | Introduction To Inheritance In C++ Programming Wit...
Simplilearn
 
File handling in C++
File handling in C++File handling in C++
File handling in C++
Hitesh Kumar
 
Polymorphism in C++
Polymorphism in C++Polymorphism in C++
Polymorphism in C++
Rabin BK
 
Support for Object-Oriented Programming (OOP) in C++
Support for Object-Oriented Programming (OOP) in C++Support for Object-Oriented Programming (OOP) in C++
Support for Object-Oriented Programming (OOP) in C++
Ameen Sha'arawi
 
Object-oriented Programming-with C#
Object-oriented Programming-with C#Object-oriented Programming-with C#
Object-oriented Programming-with C#
Doncho Minkov
 
Class and object in C++
Class and object in C++Class and object in C++
Class and object in C++
rprajat007
 
Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++
Vishal Patil
 
OOP in C++
OOP in C++OOP in C++
OOP in C++
ppd1961
 
Type casting in java
Type casting in javaType casting in java
Type casting in java
Farooq Baloch
 
Input and output in C++
Input and output in C++Input and output in C++
Input and output in C++
Nilesh Dalvi
 
Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Language
satvirsandhu9
 
Constructors and destructors
Constructors and destructorsConstructors and destructors
Constructors and destructors
Vineeta Garg
 
virtual function
virtual functionvirtual function
virtual function
VENNILAV6
 

Similar to Oop in c++ lecture 1 (20)

Object Oriented programming - Introduction
Object Oriented programming - IntroductionObject Oriented programming - Introduction
Object Oriented programming - Introduction
Madishetty Prathibha
 
LECTURE NOTES ON Object Oriented Programming Using C++
LECTURE NOTES ON Object Oriented Programming Using C++LECTURE NOTES ON Object Oriented Programming Using C++
LECTURE NOTES ON Object Oriented Programming Using C++
SandeepAwasthi15
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
Jasleen Kaur (Chandigarh University)
 
Principles of object oriented programing
Principles of object oriented programingPrinciples of object oriented programing
Principles of object oriented programing
Ahammed Alamin
 
chapter-6-oops.pdf
chapter-6-oops.pdfchapter-6-oops.pdf
chapter-6-oops.pdf
study material
 
OOP Unit 1 - Foundation of Object- Oriented Programming
OOP Unit 1 - Foundation of Object- Oriented ProgrammingOOP Unit 1 - Foundation of Object- Oriented Programming
OOP Unit 1 - Foundation of Object- Oriented Programming
dkpawar
 
OOP.pptx
OOP.pptxOOP.pptx
OOP.pptx
kalyanibedekar
 
Abhiram
AbhiramAbhiram
Abhiram
Abhiram Sadhu
 
C++ notes.pdf
C++ notes.pdfC++ notes.pdf
C++ notes.pdf
RajanBagale3
 
object oriented programming language in c++
object oriented programming language in c++object oriented programming language in c++
object oriented programming language in c++
Ravikant517175
 
OOPS_Unit_1
OOPS_Unit_1OOPS_Unit_1
OOPS_Unit_1
Shipra Swati
 
1 puc programming using c++
1 puc programming using c++1 puc programming using c++
1 puc programming using c++
Prof. Dr. K. Adisesha
 
Programming In C++
Programming In C++ Programming In C++
Programming In C++
shammi mehra
 
OOP ppt.pdf
OOP ppt.pdfOOP ppt.pdf
OOP ppt.pdf
ArpitaJana28
 
Oop basic overview
Oop basic overviewOop basic overview
Oop basic overview
Deborah Akuoko
 
Bca 2nd sem u-1 iintroduction
Bca 2nd sem u-1 iintroductionBca 2nd sem u-1 iintroduction
Bca 2nd sem u-1 iintroduction
Rai University
 
C++ [ principles of object oriented programming ]
C++ [ principles of object oriented programming ]C++ [ principles of object oriented programming ]
C++ [ principles of object oriented programming ]
Rome468
 
Unit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptxUnit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptx
shashiden1
 
SE-IT JAVA LAB OOP CONCEPT
SE-IT JAVA LAB OOP CONCEPTSE-IT JAVA LAB OOP CONCEPT
SE-IT JAVA LAB OOP CONCEPT
nikshaikh786
 
Mca 2 sem u-1 iintroduction
Mca 2 sem u-1 iintroductionMca 2 sem u-1 iintroduction
Mca 2 sem u-1 iintroduction
Rai University
 
Object Oriented programming - Introduction
Object Oriented programming - IntroductionObject Oriented programming - Introduction
Object Oriented programming - Introduction
Madishetty Prathibha
 
LECTURE NOTES ON Object Oriented Programming Using C++
LECTURE NOTES ON Object Oriented Programming Using C++LECTURE NOTES ON Object Oriented Programming Using C++
LECTURE NOTES ON Object Oriented Programming Using C++
SandeepAwasthi15
 
Principles of object oriented programing
Principles of object oriented programingPrinciples of object oriented programing
Principles of object oriented programing
Ahammed Alamin
 
OOP Unit 1 - Foundation of Object- Oriented Programming
OOP Unit 1 - Foundation of Object- Oriented ProgrammingOOP Unit 1 - Foundation of Object- Oriented Programming
OOP Unit 1 - Foundation of Object- Oriented Programming
dkpawar
 
object oriented programming language in c++
object oriented programming language in c++object oriented programming language in c++
object oriented programming language in c++
Ravikant517175
 
Programming In C++
Programming In C++ Programming In C++
Programming In C++
shammi mehra
 
Bca 2nd sem u-1 iintroduction
Bca 2nd sem u-1 iintroductionBca 2nd sem u-1 iintroduction
Bca 2nd sem u-1 iintroduction
Rai University
 
C++ [ principles of object oriented programming ]
C++ [ principles of object oriented programming ]C++ [ principles of object oriented programming ]
C++ [ principles of object oriented programming ]
Rome468
 
Unit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptxUnit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptx
shashiden1
 
SE-IT JAVA LAB OOP CONCEPT
SE-IT JAVA LAB OOP CONCEPTSE-IT JAVA LAB OOP CONCEPT
SE-IT JAVA LAB OOP CONCEPT
nikshaikh786
 
Mca 2 sem u-1 iintroduction
Mca 2 sem u-1 iintroductionMca 2 sem u-1 iintroduction
Mca 2 sem u-1 iintroduction
Rai University
 
Ad

Recently uploaded (20)

Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Elevate Your Workflow
Elevate Your WorkflowElevate Your Workflow
Elevate Your Workflow
NickHuld
 
Avnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights FlyerAvnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights Flyer
WillDavies22
 
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
LiyaShaji4
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
inmishra17121973
 
Taking AI Welfare Seriously, In this report, we argue that there is a realist...
Taking AI Welfare Seriously, In this report, we argue that there is a realist...Taking AI Welfare Seriously, In this report, we argue that there is a realist...
Taking AI Welfare Seriously, In this report, we argue that there is a realist...
MiguelMarques372250
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
Lecture 13 (Air and Noise Pollution and their Control) (1).pptx
Lecture 13 (Air and Noise Pollution and their Control) (1).pptxLecture 13 (Air and Noise Pollution and their Control) (1).pptx
Lecture 13 (Air and Noise Pollution and their Control) (1).pptx
huzaifabilalshams
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
"Heaters in Power Plants: Types, Functions, and Performance Analysis"
"Heaters in Power Plants: Types, Functions, and Performance Analysis""Heaters in Power Plants: Types, Functions, and Performance Analysis"
"Heaters in Power Plants: Types, Functions, and Performance Analysis"
Infopitaara
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
BCS401 ADA Second IA Test Question Bank.pdf
BCS401 ADA Second IA Test Question Bank.pdfBCS401 ADA Second IA Test Question Bank.pdf
BCS401 ADA Second IA Test Question Bank.pdf
VENKATESHBHAT25
 
Reagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptxReagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptx
AlejandroOdio
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)
rccbatchplant
 
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Journal of Soft Computing in Civil Engineering
 
Engineering Chemistry First Year Fullerenes
Engineering Chemistry First Year FullerenesEngineering Chemistry First Year Fullerenes
Engineering Chemistry First Year Fullerenes
5g2jpd9sp4
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
Dust Suppressants: A Sustainable Approach to Dust Pollution Control
Dust Suppressants: A Sustainable Approach to Dust Pollution ControlDust Suppressants: A Sustainable Approach to Dust Pollution Control
Dust Suppressants: A Sustainable Approach to Dust Pollution Control
Janapriya Roy
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Elevate Your Workflow
Elevate Your WorkflowElevate Your Workflow
Elevate Your Workflow
NickHuld
 
Avnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights FlyerAvnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights Flyer
WillDavies22
 
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
LiyaShaji4
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
inmishra17121973
 
Taking AI Welfare Seriously, In this report, we argue that there is a realist...
Taking AI Welfare Seriously, In this report, we argue that there is a realist...Taking AI Welfare Seriously, In this report, we argue that there is a realist...
Taking AI Welfare Seriously, In this report, we argue that there is a realist...
MiguelMarques372250
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
Lecture 13 (Air and Noise Pollution and their Control) (1).pptx
Lecture 13 (Air and Noise Pollution and their Control) (1).pptxLecture 13 (Air and Noise Pollution and their Control) (1).pptx
Lecture 13 (Air and Noise Pollution and their Control) (1).pptx
huzaifabilalshams
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
"Heaters in Power Plants: Types, Functions, and Performance Analysis"
"Heaters in Power Plants: Types, Functions, and Performance Analysis""Heaters in Power Plants: Types, Functions, and Performance Analysis"
"Heaters in Power Plants: Types, Functions, and Performance Analysis"
Infopitaara
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
BCS401 ADA Second IA Test Question Bank.pdf
BCS401 ADA Second IA Test Question Bank.pdfBCS401 ADA Second IA Test Question Bank.pdf
BCS401 ADA Second IA Test Question Bank.pdf
VENKATESHBHAT25
 
Reagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptxReagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptx
AlejandroOdio
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)
rccbatchplant
 
Engineering Chemistry First Year Fullerenes
Engineering Chemistry First Year FullerenesEngineering Chemistry First Year Fullerenes
Engineering Chemistry First Year Fullerenes
5g2jpd9sp4
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
Dust Suppressants: A Sustainable Approach to Dust Pollution Control
Dust Suppressants: A Sustainable Approach to Dust Pollution ControlDust Suppressants: A Sustainable Approach to Dust Pollution Control
Dust Suppressants: A Sustainable Approach to Dust Pollution Control
Janapriya Roy
 
Ad

Oop in c++ lecture 1

  • 1. Basic Concepts of OOPs Course Name: Object Oriented Programming with C/C++ Course Code: 19008600 Computer Science Engineering(Sem-III) Faculty Name: Zaiba Khan Assistant Professor(CSE) School of Engineering & Technology
  • 2. Why do we need Object Oriented Programming ?  Object Oriented Programming was developed because limitations were discovered in earlier approaches to programming.
  • 3. Procedure Oriented Programming(POP)  C, Pascal, Fortan and similar languages are procedural languages.  Each statement in the language tells the computer to do something: ◦ Get some input ◦ Add these numbers ◦ Divide by 6 ◦ Display that output A program in a procedural language is a list of instructions.
  • 4. Procedure Oriented Programming(POP)  Division into Functions: ◦ Procedural program is divided into functions. ◦ Each function has clearly defined purpose and a clearly defined interface to the other functions in the program. ◦ It can be further extended by grouping a number of functions together into a larger entity called a module. What are functions?
  • 5. Procedure Oriented Programming(POP)  Division into functions:
  • 6. Procedure Oriented Programming(POP)  Characteristics: ◦ Emphasis is on doing things (Algorithms) ◦ Large programs are divided into smaller programs known as functions. ◦ Most of the functions share global data. ◦ Functions transform data from one form to another. ◦ Top-down approach is used in program design. What is Top- down approach?
  • 7. Procedure Oriented Programming(POP)  Top Down Approach: ◦ It is a process of breaking the overall procedure or task into component parts (modules) then subdivide each component module until the lowest level of detail has been reach. ◦ For Example: The payroll system of a company can contain the following modules or tasks  Master file  Earning  Deductions  Taxing  Net Earning  Print reports
  • 8. Procedure Oriented Programming(POP)  Drawbacks: ◦ Since every function has complete access to the global variables, the new programmer can corrupt the data accidently by creating functions. ◦ We can access the data of one function from other since, there is no protection. ◦ In large data program it is very difficult to identify what data is used by which function. ◦ Similarly, if new data is to be added, all the function needed to be modified to access the data. ◦ It does not model with the real world problem very well.
  • 9. Object Oriented Programming(OOP)  OOP was introduced to overcome the flaws in the procedural approach to programming.  Such as like reusability and maintainability.  The basic fundamental idea behind OOP programming is to combine into single unit both data and the functions that operate on the data.  Such unit is called Object.
  • 10. Object Oriented Programming(OOP)  In OOP, problem is divided into the number of entities called objects and then builds data and functions around these objects.  Data of an object can be accessed only by the functions associated with that object.  Communication of the objects done through function.
  • 12. Object Oriented Programming(OOP)  Characteristics: ◦ Emphasis more on data rather than procedure. ◦ Programs are divided into entities called object. ◦ Data is hidden and cannot be accessed by external functions. ◦ Objects communicate with each through functions. ◦ New data and functions can be easily added whenever necessary . ◦ Follow bottom up design in program design.
  • 13. Object Oriented Programming(OOP)  Bottom Up Approach: ◦ It is a reverse process of Top Down approach. ◦ Lower level task are carried out first and then integrated to provide the solution of a single program. ◦ Lower level structures of a program are evolved first. ◦ After that higher level structures are created. ◦ It promotes code reuse.
  • 14. Summary: Difference between POP & OOP Procedural Oriented Programming(POP)  In POP, program is divided into small parts called functions.  In POP, Importance is not given to data but to functions as well as sequence of actions to be done.  POP follows Top Down approach.  POP does not have any access specifier.  In POP, Data can move freely from function to function in the system.  To add new data and function in POP is not so easy.  POP does not have any proper way for hiding data so it is less secure.  Example of POP are : C, VB, FORTRAN, Pascal. Object Oriented Programming(OOP)  OOP, program is divided into parts called objects.  In OOP, Importance is given to the data rather than procedures or functions because it works as a real world.  OOP follows Bottom Up approach.  OOP has access specifiers named Public, Private, Protected, etc.  In OOP, objects can move and communicate with each other through member functions.  OOP provides an easy way to add new data and function.  OOP provides Data Hiding so provides more security.  Example of OOP are : C++, JAVA, VB.NET, C#.NET.
  • 15. Character Set in C++  There are four types of Character Set: Character Set 1.Ank Letters Uppercase A-Z Lowercase a-z 2. Digits All digits 0-9 3. Special Characters All symbols , : , ;,!, !,$, &,,*,%,@, {},[],() 4. White Spaces Blank Space, Horizontal tab, New Line
  • 17. Constant in C++  It is an identifier whose value cannot be changed at the execution time of program.  It can simply be defined as “constant “ can be used to represent as fixed values in a C++ program. Classification is as follows:
  • 18. Variables in C++  Variables are used to store values.  Variable name is the name of memory location where value is store.  It must be alphanumeric , only underscore is allowed in a variable name. Syntax: Data-Type Variable Name Examples: int a; float b; char c; Initialization of Variable: Means assigning value to declared variable. For example: A= 10; B=4.5; C=‘a’; Do You Know? If no input values are assigned by the user than system will gives a default value called garbage value.
  • 19. Data Types in C++  A keyword to identify type of data. It is used for storing the input of the program into the main memory (RAM)of the computer.  There are three categories of data type. They are
  • 20. Data Types in C++(Cont.)  Primitive Data Types ◦ These are the data types whose variable can hold maximum one value at a time.  Derived Data Types ◦ They are derived from fundamental data type. ◦ It allow us to store multiple values of same type in one variable BUT never allows to store many values of different types.

Editor's Notes

  • #5: Man is an intelligent specie, but still cannot perform all the task own its own. He rely on others. Like for food we rely on farmers, for groceries on food store. A computer find itself in the same situation. It cannot handle all the tasks own its own. In that case “Functions” are called Main() { Message(); } Message() { Printf{ “ Smile, and the world smiles with you”); }
  • #8: Top down approach which means that to solve a problem we first need to take a largest module and then it is solved so that small modules fit in that.
  • #18: If any single character (alphabet or numeric or special symbol) is enclosed between single quotes ' ' known as single character constant. If set of characters are enclosed between double quotes " " known as string character constant.