Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
2 views
basics of oops
Basic of oops
Uploaded by
Dj Freefire
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save basics of oops For Later
Download
Save
Save basics of oops For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
2 views
basics of oops
Basic of oops
Uploaded by
Dj Freefire
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save basics of oops For Later
Carousel Previous
Carousel Next
Save
Save basics of oops For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 8
Search
Fullscreen
4 @—________. Object-Oriented Programming with C++ These include techniques such as modular programming, top-down pregraniming, bottom: up programming and structured programming. The primary motivation in each has been the concern to handle the inereasing complexity of programs that are reliable and maintainable. These techniques have become popular among programimers over the last two decades. Objectoriented programming eo Layers of Computer software With the advent of languages such as C, structured programniing became very popular and was the main technique of the 1980s. Structured programming was a powerful tool that enabled programmers to write moderately complex programs fairly easily. However, as the programs grew larger, even the structured approach failed to show the desired results in terms of bug-free, easy-to-maintain, and reusable programs. Object-Oriented Programming (OOP) is an approach ta program organization and development that attempts to eliminate some of the pitfalls of conventional programming methods by ‘incorporating the best of structured programming features with several powerful new concepts. It is a new way of organizing and developing programs and has nothing to do with any particular language. However, not all languages are suitable to implement the OOP concepts easily, I 3 A Look at Procedure-Oriented Programming Conventional programming, using high level languages such as COBOL, FORTRAN and ©, is commonly known as procedure-oriented programming (POP). In the procedure-oriented approach, the problem is viewed as a sequence of things to be done such as reading, calculating,Prinuples of Object-Oriented Programming ——————® 5 and printing. A number of functions are written to accomplish these tasks. The primary focus is on functions, A typical program structure for procedural programming is shown in Fig, 1.4. ae oe ye ae oe et tere eke he for solving a problem. ‘Procedure-oriented. programming basically consists of writing a list of instructions (or actions) for the computer to follow, and organizing these instructions into groups known as functions. We normally use a flowchart to organize these actions and represent the flow of control from ene action to another. While we concentrate on the development of functions, very little attention is given to the data that are being used by various functions. What happens to the data? How are they affected by the functions that work on them? Ina multi-function program, many important data items are placed as global so that they may be accessed by all the functions, Each function may have its own locat data, Figure 1.5 shows the relationship of data and functions in a procedure-oriented program. Global data are more vulnerable to an inadvertent change by a function, In a large program it is very difficult to identify what data is used by which function. In case we need to revise an external data structure, we also need to revise all functions that access the data, This provides an opportunity for bugs ta creep in, Another serious drawback with the procedural approach is that it does not model real world problems very well. This is because functions are action-oriented and do not really correspond to the elements of the problem.6 6. ject-Orientedt Programming smith C++ Some characteristics exhibited by procedure-oriented programming are: Emphasis is on doing things (algorithms). Large programs are divided into smaller programs known as functions. Most of the functions share global data. Data move openly around the system from function to function. Funetions transform data from one form to another. Employs top-down approach in program design, l 4 Object-Oriented Programming Paradigm ‘The major motivating factor in the invention of object-oriented approach is to remove some of the flaws encountered in the procedural approach. OOP treats data as a critical element in the program development and does not allow it to flow freely around the system. It ties data more closely to the functions that operate on it, and protects it from accidental modification from outside functions, OOP allows decomposition of a problem into a number of entities called objects and then builds data and functions around these objects. The organization of data and functions in object-oriented programs is shown in Fig. 1.6. The data of an object can be accessed only by the functions associated with that object. However, functions of one object ean access the functions of other objects. ‘Some of the striking features of object-oriented programming are: @ Emphasis js on data rather than procedure. Programs are divided into what are known as objects. © Data structures are designed such that they characterize the objects.Principles of Object-Oriented Programming ——————@ 7 ® Functions that operate on the data of an object are tied together in the data strue- ture. © Data is hidden and cannot be necessed hy external functions, ® Objects may communicate with each other through functions. @ New data and functions can be easily added whenever necessary, © Follows bottom-up approach in program design, Object A Object 8 Object-oriented programming is the most recent concept among programming paradigms and still means different things to different people. ripper tial py definition of object-oriented programming before we proceed further. We define “object- oriented programming as an approach that provides a way of modularizing programs by creating partitioned memory area for both data and functions that can be used as templates for creating copies of such modules on demand.” Thus, an object ia considered to be a partitioned area of computer memory that stores data and set of operations that can access that data. Since the memory partitions are independent, the objects can be used in a variety of different programs without modifications, bs Basic Concepts of Object-Oriented Programming It is necessary to understand some of the concepts used extensively in object-oriented programming. These include: © Objects ® Classes12 @—__________. Otject- Oriented Programming with C++ A message for an object is a request for execution of a procedure, and therefore will invoke a function (procedure) in the receiving object that generates the desired result. Message passing involves specifying the name of the object, the name of the function (message) and the tion to be sent. Example: ‘employes salary (name); 4 4 object Information message Objects have a life eyele. They can be created and destrayed. Communication with an object is feasible as long-as it is alive, OOP offers several benefits to both the program designer and the user. Object-orientation contributes to the solution of many problems associated with the development and quality of software products, The new technology promises greater programmer productivity, better quality of software and lesser maintenance cost. The principal advantages are: \& Through inheritance, we ean eliminate redundant code and extond the use of exist- yy Weean build programs from the standard working modules that communicate with one another, rather than having to start writing the code from scratch. This leads to saving of development time and higher productivity. \L® The principle of data hiding helps the programmer to build secure programs that cannot be invaded by code in other parts of the program.
You might also like
CPP Unit 1
PDF
No ratings yet
CPP Unit 1
73 pages
Programming in C++ For BCA BIT BE
PDF
No ratings yet
Programming in C++ For BCA BIT BE
0 pages
Programming in C++ For BCA BIT BE PDF
PDF
No ratings yet
Programming in C++ For BCA BIT BE PDF
129 pages
Unit 1 Notes
PDF
No ratings yet
Unit 1 Notes
34 pages
UNIT-1
PDF
No ratings yet
UNIT-1
24 pages
Chapter 1 Introduction To Object Oriented Programming
PDF
100% (1)
Chapter 1 Introduction To Object Oriented Programming
6 pages
CPP Unit-1
PDF
0% (1)
CPP Unit-1
73 pages
CPP New
PDF
No ratings yet
CPP New
112 pages
302 Book FOR STUDENTS
PDF
No ratings yet
302 Book FOR STUDENTS
188 pages
1.Object Orientation Programming
PDF
No ratings yet
1.Object Orientation Programming
37 pages
Lecture 1 - Introduction To Oop
PDF
No ratings yet
Lecture 1 - Introduction To Oop
22 pages
LECTURE 1 - Inroduction To OOPs
PDF
No ratings yet
LECTURE 1 - Inroduction To OOPs
22 pages
Introduction To Programming (C++) Introduction To Object Oriented Programming (OOP)
PDF
No ratings yet
Introduction To Programming (C++) Introduction To Object Oriented Programming (OOP)
12 pages
EC104 Unit4
PDF
No ratings yet
EC104 Unit4
21 pages
Object Oriented Programming With C++
PDF
No ratings yet
Object Oriented Programming With C++
159 pages
Programming in C++ For BCA BIT BE
PDF
No ratings yet
Programming in C++ For BCA BIT BE
129 pages
Unit 1 Oop
PDF
No ratings yet
Unit 1 Oop
19 pages
Chapter 1 - Principal of Object Oriented Programming
PDF
No ratings yet
Chapter 1 - Principal of Object Oriented Programming
15 pages
C++ Introduction - BU BCA
PDF
No ratings yet
C++ Introduction - BU BCA
6 pages
OOPS Note Lect-1 To 7
PDF
No ratings yet
OOPS Note Lect-1 To 7
26 pages
Unit1 Oosd
PDF
No ratings yet
Unit1 Oosd
14 pages
R19 OOPS Unit 1 (Ref-2)
PDF
No ratings yet
R19 OOPS Unit 1 (Ref-2)
15 pages
Objected Oriented Programming With C++: (India) Private Limited, New Delhi
PDF
No ratings yet
Objected Oriented Programming With C++: (India) Private Limited, New Delhi
65 pages
DR - Jyothirmayi Degree College, Adoni.: Paper-III - Object Oriented Programming Using C++: Unit-1 Fundamentals
PDF
No ratings yet
DR - Jyothirmayi Degree College, Adoni.: Paper-III - Object Oriented Programming Using C++: Unit-1 Fundamentals
65 pages
CPP With Oop Notes
PDF
No ratings yet
CPP With Oop Notes
64 pages
C++ Final Material
PDF
No ratings yet
C++ Final Material
221 pages
OOP Handwritten Book
PDF
No ratings yet
OOP Handwritten Book
93 pages
Oops Basics
PDF
No ratings yet
Oops Basics
28 pages
CPP Module 1 New
PDF
No ratings yet
CPP Module 1 New
37 pages
Unit 1 C++
PDF
No ratings yet
Unit 1 C++
19 pages
Object Oriented Programming Note
PDF
No ratings yet
Object Oriented Programming Note
99 pages
Unit - 1: Introduction To Object Oriented Programming
PDF
No ratings yet
Unit - 1: Introduction To Object Oriented Programming
19 pages
Chapter 1 PDF
PDF
No ratings yet
Chapter 1 PDF
4 pages
Oops 1
PDF
No ratings yet
Oops 1
137 pages
20CS6205C Fund. of JAVA Programming UNIT-I (1)
PDF
No ratings yet
20CS6205C Fund. of JAVA Programming UNIT-I (1)
70 pages
C PDF
PDF
No ratings yet
C PDF
91 pages
Ms 17
PDF
No ratings yet
Ms 17
188 pages
Paper Code: Paper Name: OOP With C++ Lesson No: 1 Lesson Name: Introduction of OOP Author: Pooja Chawla Vetter: Prof. Dharminder Kumar
PDF
No ratings yet
Paper Code: Paper Name: OOP With C++ Lesson No: 1 Lesson Name: Introduction of OOP Author: Pooja Chawla Vetter: Prof. Dharminder Kumar
5 pages
Programming in C and C++ - Unit IV
PDF
No ratings yet
Programming in C and C++ - Unit IV
49 pages
BSC Notes Latest
PDF
No ratings yet
BSC Notes Latest
31 pages
C++ - OOPs
PDF
No ratings yet
C++ - OOPs
4 pages
C Unit-1
PDF
No ratings yet
C Unit-1
19 pages
chap 1 oopnotes
PDF
No ratings yet
chap 1 oopnotes
19 pages
Oops Notes PDF
PDF
No ratings yet
Oops Notes PDF
93 pages
Data
PDF
No ratings yet
Data
93 pages
Object Oriented Programming
PDF
No ratings yet
Object Oriented Programming
11 pages
OOPChapter 01
PDF
No ratings yet
OOPChapter 01
6 pages
OOPS Notes For 3rd Sem ALL Chapters
PDF
83% (6)
OOPS Notes For 3rd Sem ALL Chapters
62 pages
01 What Is OOP
PDF
No ratings yet
01 What Is OOP
19 pages
Sem-2 BCA-CPP notes(1)
PDF
No ratings yet
Sem-2 BCA-CPP notes(1)
64 pages
Bsccsit Com C
PDF
No ratings yet
Bsccsit Com C
141 pages
Oop Notes
PDF
No ratings yet
Oop Notes
72 pages
Basic Object Oriented Concepts: Name: Vinod Pillai Email
PDF
No ratings yet
Basic Object Oriented Concepts: Name: Vinod Pillai Email
36 pages
CH 1 C++
PDF
No ratings yet
CH 1 C++
22 pages
1-3
PDF
No ratings yet
1-3
184 pages
Object Oriented Programming With C++ 18CS44
PDF
No ratings yet
Object Oriented Programming With C++ 18CS44
23 pages
Object Oriented Programming With C
PDF
No ratings yet
Object Oriented Programming With C
50 pages
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
CPP Unit 1
PDF
CPP Unit 1
Programming in C++ For BCA BIT BE
PDF
Programming in C++ For BCA BIT BE
Programming in C++ For BCA BIT BE PDF
PDF
Programming in C++ For BCA BIT BE PDF
Unit 1 Notes
PDF
Unit 1 Notes
UNIT-1
PDF
UNIT-1
Chapter 1 Introduction To Object Oriented Programming
PDF
Chapter 1 Introduction To Object Oriented Programming
CPP Unit-1
PDF
CPP Unit-1
CPP New
PDF
CPP New
302 Book FOR STUDENTS
PDF
302 Book FOR STUDENTS
1.Object Orientation Programming
PDF
1.Object Orientation Programming
Lecture 1 - Introduction To Oop
PDF
Lecture 1 - Introduction To Oop
LECTURE 1 - Inroduction To OOPs
PDF
LECTURE 1 - Inroduction To OOPs
Introduction To Programming (C++) Introduction To Object Oriented Programming (OOP)
PDF
Introduction To Programming (C++) Introduction To Object Oriented Programming (OOP)
EC104 Unit4
PDF
EC104 Unit4
Object Oriented Programming With C++
PDF
Object Oriented Programming With C++
Programming in C++ For BCA BIT BE
PDF
Programming in C++ For BCA BIT BE
Unit 1 Oop
PDF
Unit 1 Oop
Chapter 1 - Principal of Object Oriented Programming
PDF
Chapter 1 - Principal of Object Oriented Programming
C++ Introduction - BU BCA
PDF
C++ Introduction - BU BCA
OOPS Note Lect-1 To 7
PDF
OOPS Note Lect-1 To 7
Unit1 Oosd
PDF
Unit1 Oosd
R19 OOPS Unit 1 (Ref-2)
PDF
R19 OOPS Unit 1 (Ref-2)
Objected Oriented Programming With C++: (India) Private Limited, New Delhi
PDF
Objected Oriented Programming With C++: (India) Private Limited, New Delhi
DR - Jyothirmayi Degree College, Adoni.: Paper-III - Object Oriented Programming Using C++: Unit-1 Fundamentals
PDF
DR - Jyothirmayi Degree College, Adoni.: Paper-III - Object Oriented Programming Using C++: Unit-1 Fundamentals
CPP With Oop Notes
PDF
CPP With Oop Notes
C++ Final Material
PDF
C++ Final Material
OOP Handwritten Book
PDF
OOP Handwritten Book
Oops Basics
PDF
Oops Basics
CPP Module 1 New
PDF
CPP Module 1 New
Unit 1 C++
PDF
Unit 1 C++
Object Oriented Programming Note
PDF
Object Oriented Programming Note
Unit - 1: Introduction To Object Oriented Programming
PDF
Unit - 1: Introduction To Object Oriented Programming
Chapter 1 PDF
PDF
Chapter 1 PDF
Oops 1
PDF
Oops 1
20CS6205C Fund. of JAVA Programming UNIT-I (1)
PDF
20CS6205C Fund. of JAVA Programming UNIT-I (1)
C PDF
PDF
C PDF
Ms 17
PDF
Ms 17
Paper Code: Paper Name: OOP With C++ Lesson No: 1 Lesson Name: Introduction of OOP Author: Pooja Chawla Vetter: Prof. Dharminder Kumar
PDF
Paper Code: Paper Name: OOP With C++ Lesson No: 1 Lesson Name: Introduction of OOP Author: Pooja Chawla Vetter: Prof. Dharminder Kumar
Programming in C and C++ - Unit IV
PDF
Programming in C and C++ - Unit IV
BSC Notes Latest
PDF
BSC Notes Latest
C++ - OOPs
PDF
C++ - OOPs
C Unit-1
PDF
C Unit-1
chap 1 oopnotes
PDF
chap 1 oopnotes
Oops Notes PDF
PDF
Oops Notes PDF
Data
PDF
Data
Object Oriented Programming
PDF
Object Oriented Programming
OOPChapter 01
PDF
OOPChapter 01
OOPS Notes For 3rd Sem ALL Chapters
PDF
OOPS Notes For 3rd Sem ALL Chapters
01 What Is OOP
PDF
01 What Is OOP
Sem-2 BCA-CPP notes(1)
PDF
Sem-2 BCA-CPP notes(1)
Bsccsit Com C
PDF
Bsccsit Com C
Oop Notes
PDF
Oop Notes
Basic Object Oriented Concepts: Name: Vinod Pillai Email
PDF
Basic Object Oriented Concepts: Name: Vinod Pillai Email
CH 1 C++
PDF
CH 1 C++
1-3
PDF
1-3
Object Oriented Programming With C++ 18CS44
PDF
Object Oriented Programming With C++ 18CS44
Object Oriented Programming With C
PDF
Object Oriented Programming With C