SlideShare a Scribd company logo
Workshop on “Object oriented
programming using C++ and Java -
an interview based approach”
Dr. S.M. Badhusha
Sr.Professor/ CSE department
Alva’s Institute Engineering and Technology
Mijar, Moodbidri, Mangalore
Introduction to C++
C++ is a general purpose programming language
It has object-oriented and generic programming
features
C++ runs on lots of platform like Windows,
Linux, Unix, Mac etc.
It was developed by Bjarne Stroustrup at Bell
labs.
It is statically typed, free form, Compiled
general-purpose language.
Introduction to C++
Object oriented Programming using C++ and Java
Object Oriented Programming
Four major principles :

Data Abstraction.

Encapsulation(Information Hiding).

Polymorphism (static and dynamic binding).

Inheritance.
Object oriented Programming using C++ and Java
Advantages of C++ over C

Variables can be declared anywhere

Inline functions, function overloading & Operator
Overloading

Stronger Type Checking in C++

OOPS features in C++ like Abstraction,
Encapsulation, Polymorphism & Inheritance

Exception Handling (a method to handle
unresolved exceptions or errors at runtime).

Virtual functions and also Constructors and
Destructors for Objects

Templates

new and delete instead of malloc() and free()
Important terminologies in oops

A class is a blueprint for any functional entity which
defines its properties and its functions

The properties and functions of the base class is inherited
to the derived class is inheritance

Object is an entity which is created by a Class

Abstraction means, showcasing only the required things to
the outside world while hiding the details

Wrapping up of both data and member functions is Data
encapsulation

Polymorphism : ability for the msg or data to be processed
in more than one form

Modularity : ability of a system to be decomposed into a
set of related modules
Conclusion

OOPs Concept is adopted in software development
environment thoroughly.

It offers importance for data rather than procedure for
handling data

It provides a layered security for software system.

A modular,secure, reliable software can be developed with
reusability in coding

An ideal programming paradigm for developing web-
oriented applications with high level of data abstraction is
Object oriented programming concept.

It currently is best suited for different on-line web-oriented
applications with high level of integrity.
References

Sourav Sahay, Object Oriented Programming with
C++ , Oxford University Press,2006

Herbert Schildt, Java The Complete Reference, 7th
Edition, Tata McGraw Hill, 2007.

Mahesh Bhave and Sunil Patekar, "Programming
with Java", First Edition, Pearson Education,2008,
ISBN:9788131720806

Herbert Schildt, The Complete Reference C++, 4th
Edition, Tata McGraw Hill, 2003.

Stanley B.Lippmann, Josee Lajore, C++ Primer, 4th
Edition, Pearson Education, 2005

https://www.tutorialspoint.com/
https://www.geeksforgeeks.org/

More Related Content

PPT
Unit 1- Basic concept of object-oriented-programming.ppt
hannahroseline2
 
PPT
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
PDF
Introduction to Object Oriented Programming.pdf
ManishBej3
 
PPTX
2-oops-concepts_about_c++_btech_cse.pptx
NitinGarg168992
 
PPTX
object oriented programming in c++ introduction lecture 1.pptx
amna hussain
 
PDF
OOPS_Unit_1
Shipra Swati
 
PPTX
Top Java OOP Principles You Should Know Before Your Next Interview
vishalmore1356
 
PPTX
c++session 1.pptx
PadmaN24
 
Unit 1- Basic concept of object-oriented-programming.ppt
hannahroseline2
 
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
Introduction to Object Oriented Programming.pdf
ManishBej3
 
2-oops-concepts_about_c++_btech_cse.pptx
NitinGarg168992
 
object oriented programming in c++ introduction lecture 1.pptx
amna hussain
 
OOPS_Unit_1
Shipra Swati
 
Top Java OOP Principles You Should Know Before Your Next Interview
vishalmore1356
 
c++session 1.pptx
PadmaN24
 

Similar to Object oriented Programming using C++ and Java (20)

PPT
Topic 1 PBO
Imanuel Nugroho
 
PDF
CS305PC_C++_UNIT 1 notes jntuh third semester
VeeraswamyDasari2
 
PPTX
INTRODUCTION TO JAVA
RAMALINGHAM KRISHNAMOORTHY
 
PPT
Mca 2 sem u-1 iintroduction
Rai University
 
PPT
Bca 2nd sem u-1 iintroduction
Rai University
 
PDF
Object Oriented Programming
𝗦𝗵𝗶𝘃𝗮𝗺 𝗝𝗼𝘀𝗵𝗶
 
PDF
1 puc programming using c++
Prof. Dr. K. Adisesha
 
PPTX
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
PPTX
Birasa 1
Niyitegekabilly
 
PPTX
JAVA PROGRAMMING
Niyitegekabilly
 
PDF
Diving into OOPs_ Key Concepts and Principles (1).pdf
kaushiklalit117
 
PDF
Procedural-vs-Object-Oriented-Programming (1).pdf
AnujMalviya12
 
PPTX
lec(1).pptx
MemMem25
 
PPT
chapter - 1.ppt
SakthiVinoth78
 
PDF
Evolution Of Object Oriented Technology
Sharon Roberts
 
PPTX
JAVA PROGRAMMINGD
Niyitegekabilly
 
PPTX
Block_1_Unit- I.pdf bca learning for exam you
vosawe9128
 
KEY
Practical OOP In Java
wiradikusuma
 
PPTX
java oops and java very important for .pptx
cherukuriyuvaraju9
 
PPTX
java oops compilation object class inheritance.pptx
CHERUKURIYUVARAJU209
 
Topic 1 PBO
Imanuel Nugroho
 
CS305PC_C++_UNIT 1 notes jntuh third semester
VeeraswamyDasari2
 
INTRODUCTION TO JAVA
RAMALINGHAM KRISHNAMOORTHY
 
Mca 2 sem u-1 iintroduction
Rai University
 
Bca 2nd sem u-1 iintroduction
Rai University
 
1 puc programming using c++
Prof. Dr. K. Adisesha
 
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
Birasa 1
Niyitegekabilly
 
JAVA PROGRAMMING
Niyitegekabilly
 
Diving into OOPs_ Key Concepts and Principles (1).pdf
kaushiklalit117
 
Procedural-vs-Object-Oriented-Programming (1).pdf
AnujMalviya12
 
lec(1).pptx
MemMem25
 
chapter - 1.ppt
SakthiVinoth78
 
Evolution Of Object Oriented Technology
Sharon Roberts
 
JAVA PROGRAMMINGD
Niyitegekabilly
 
Block_1_Unit- I.pdf bca learning for exam you
vosawe9128
 
Practical OOP In Java
wiradikusuma
 
java oops and java very important for .pptx
cherukuriyuvaraju9
 
java oops compilation object class inheritance.pptx
CHERUKURIYUVARAJU209
 
Ad

More from S.Mohideen Badhusha (7)

PDF
Introduction to Python Data Analytics.pdf
S.Mohideen Badhusha
 
PDF
Simple intro to HTML and its applications
S.Mohideen Badhusha
 
PDF
PHP Programming and its Applications workshop
S.Mohideen Badhusha
 
PDF
‘How to develop Pythonic coding rather than Python coding – Logic Perspective’
S.Mohideen Badhusha
 
PDF
‘How to develop Pythonic coding rather than Python coding – Logic Perspective’
S.Mohideen Badhusha
 
PDF
‘How to develop Pythonic coding rather than Python coding – Logic Perspective’
S.Mohideen Badhusha
 
PDF
‘How to develop Pythonic coding rather than Python coding – Logic Perspective’
S.Mohideen Badhusha
 
Introduction to Python Data Analytics.pdf
S.Mohideen Badhusha
 
Simple intro to HTML and its applications
S.Mohideen Badhusha
 
PHP Programming and its Applications workshop
S.Mohideen Badhusha
 
‘How to develop Pythonic coding rather than Python coding – Logic Perspective’
S.Mohideen Badhusha
 
‘How to develop Pythonic coding rather than Python coding – Logic Perspective’
S.Mohideen Badhusha
 
‘How to develop Pythonic coding rather than Python coding – Logic Perspective’
S.Mohideen Badhusha
 
‘How to develop Pythonic coding rather than Python coding – Logic Perspective’
S.Mohideen Badhusha
 
Ad

Recently uploaded (20)

PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
PDF
Zero Carbon Building Performance standard
BassemOsman1
 
PPT
SCOPE_~1- technology of green house and poyhouse
bala464780
 
PDF
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
The Asian School
 
PDF
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
DOCX
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
PDF
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
PPTX
AgentX UiPath Community Webinar series - Delhi
RohitRadhakrishnan8
 
PPTX
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
PPTX
Color Model in Textile ( RGB, CMYK).pptx
auladhossain191
 
PPT
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PPTX
Introduction of deep learning in cse.pptx
fizarcse
 
PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PPTX
easa module 3 funtamental electronics.pptx
tryanothert7
 
PDF
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
Zero Carbon Building Performance standard
BassemOsman1
 
SCOPE_~1- technology of green house and poyhouse
bala464780
 
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
The Asian School
 
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
AgentX UiPath Community Webinar series - Delhi
RohitRadhakrishnan8
 
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
Color Model in Textile ( RGB, CMYK).pptx
auladhossain191
 
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
Introduction of deep learning in cse.pptx
fizarcse
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
easa module 3 funtamental electronics.pptx
tryanothert7
 
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 

Object oriented Programming using C++ and Java

  • 1. Workshop on “Object oriented programming using C++ and Java - an interview based approach” Dr. S.M. Badhusha Sr.Professor/ CSE department Alva’s Institute Engineering and Technology Mijar, Moodbidri, Mangalore
  • 3. C++ is a general purpose programming language It has object-oriented and generic programming features C++ runs on lots of platform like Windows, Linux, Unix, Mac etc. It was developed by Bjarne Stroustrup at Bell labs. It is statically typed, free form, Compiled general-purpose language. Introduction to C++
  • 5. Object Oriented Programming Four major principles :  Data Abstraction.  Encapsulation(Information Hiding).  Polymorphism (static and dynamic binding).  Inheritance.
  • 7. Advantages of C++ over C  Variables can be declared anywhere  Inline functions, function overloading & Operator Overloading  Stronger Type Checking in C++  OOPS features in C++ like Abstraction, Encapsulation, Polymorphism & Inheritance  Exception Handling (a method to handle unresolved exceptions or errors at runtime).  Virtual functions and also Constructors and Destructors for Objects  Templates  new and delete instead of malloc() and free()
  • 8. Important terminologies in oops  A class is a blueprint for any functional entity which defines its properties and its functions  The properties and functions of the base class is inherited to the derived class is inheritance  Object is an entity which is created by a Class  Abstraction means, showcasing only the required things to the outside world while hiding the details  Wrapping up of both data and member functions is Data encapsulation  Polymorphism : ability for the msg or data to be processed in more than one form  Modularity : ability of a system to be decomposed into a set of related modules
  • 9. Conclusion  OOPs Concept is adopted in software development environment thoroughly.  It offers importance for data rather than procedure for handling data  It provides a layered security for software system.  A modular,secure, reliable software can be developed with reusability in coding  An ideal programming paradigm for developing web- oriented applications with high level of data abstraction is Object oriented programming concept.  It currently is best suited for different on-line web-oriented applications with high level of integrity.
  • 10. References  Sourav Sahay, Object Oriented Programming with C++ , Oxford University Press,2006  Herbert Schildt, Java The Complete Reference, 7th Edition, Tata McGraw Hill, 2007.  Mahesh Bhave and Sunil Patekar, "Programming with Java", First Edition, Pearson Education,2008, ISBN:9788131720806  Herbert Schildt, The Complete Reference C++, 4th Edition, Tata McGraw Hill, 2003.  Stanley B.Lippmann, Josee Lajore, C++ Primer, 4th Edition, Pearson Education, 2005  https://www.tutorialspoint.com/ https://www.geeksforgeeks.org/