0% found this document useful (0 votes)
8 views15 pages

Group 1

Uploaded by

pawarnisha1797
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views15 pages

Group 1

Uploaded by

pawarnisha1797
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

MAHARASHTRA STATE BOARD TECHNICAL EDUCATION

P.E.S POLYTECHNIC AURANGABAD

Computer Engineering Department


Academic year :2024-2025
Topic of seminar : Principles Of Object Oriented
Programming
Presented by:
Academic year :2024-2025
1. Omkar
Topic of seminar : Principles of Object-Oriented Programming
Vidhate
Guided by : prof. Nisha Pawar ma’am
2. Moiz Syed
3. Aryan Niware
PRINCIPLES OF
OBJECT
ORIENTED
1.
PROGRAMMING
What is OOP 8. Program
2. Advantage 9. Implement and Application
3. Disadvantage of OOP 10. Structure of C++
4. POP VS OOP 11. Data types
5. Class and Object/Syntax of Class 12. Practical implementation
6. Operators
7. Access Specifiers
WHAT IS OOP?

1
ADVANTAGE’S OF OOP’S

1. Better Data Management

2. Improved Maintainability

3. Real-World Modeling

4. Code Reusability

5. Modularity

2
DISADVANTAGES OF OOP’S

 All languages cannot easily implement object-oriented


approach. So , OOP is limited to a few languages .

 First time development process in OOP is more difficult than


procedure oriented software

3
POP VS OOP
POP OOP
I. POP is stands for Procedure I. OOP is stands for Object
Oriented Programming Oriented Programming
Language. Language.
II. In POP, program is divided into II. In OOP, program is divided into
small parts called functions . parts called objects.
III. POP follows Top Down
approach. V III.

IV.
OOP follows Bottom Up
approach.
It have access specifiers like
IV. There is no any access
specifiers. S V.
private, public, protected.
In OOP, Overloading is possible
V. In POP, Overloading is not in the form of function
possible. Overloading.
VI. No Global Data.
VI. Global Data is allowed. VII. OOP provides an easy way to 4
add new data and function.
CLASS AND OBJECT
 Class: A Class can have data members as well
as function members.
 Object: Blue print of class

Syntax of declare class:


class class_name
{
// datatype
//member function
}; 5
PROGRAM
#include<iostream.h> Void display() {
#include<conio.h>
Cout<<sum;
Class Add { }
Public:
};
Int a, b, sum;
Void main() {
Void getdata() {
Cout<<“Enter value of a and b”; Clrscr();
Cin>>a; Add A1;
Cin>>b; A1.getdata();
A1.compute();
} A1.display();
Void compute() {
Getch();
sum= a+b;
}
} 6
Special operators in C++
for OOP
C++ provides special operators to facilitate OOP operations.

Operator Description

Logical OR(||) Returns the value true if either of


both operands else returns false. .

Address of operator(&) It is used to obtain the memory


address of any variable.

Scope Resolution (::) Access members of a class or


namespace.

Member Access (.) Access members of an object.

8
ACCESS SPECIFIERS
1. Private

2. Public

3. Protected

9
IMPLEMENT AND APPLICATION

 Software Development

 Game Development

 Web Development

 Mobile App Development

 Graphical User Interfaces (GUIs

10
Structure of C++ and OOP
C++ programs follow a structured approach with headers, namespaces, classes, functions, and the m

1 Headers
Include necessary libraries and external functionalities.

2 Namespaces
Organize code into logical groups, avoiding naming conflicts.

3 Classes
Define data and methods associated with objects.

4 Functions
Perform specific tasks, providing modularity and reusability.

5 Main Function
The entry point of the program, where execution begins.

11
12
Practical implementation of OOP conc
OOP concepts can be applied to solve various real-world problems, enabling code modularity, reusability, and main

Encapsulation Inheritance Polymorphism


Protect data and methods Create new classes based Allow objects of different
within a class, allowing on existing ones, inheriting classes to respond to the
controlled access. properties and methods. same message in different
ways.

13
THANKYOU

You might also like