Workshop on “Objectoriented 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
C++ is ageneral 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 Fourmajor 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 inoops 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 isadopted 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, ObjectOriented 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/