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/