1 intro object oriented programming
DESCRIPTION
Object Oriented ProgrammingTRANSCRIPT
CSE 219
Object oriented Paradigm and Programming
By
G.SasiKumar., M.E., (Ph.D).,Assistant Professor
School of Computing Science and EngineeringVIT University
04/12/231 VIT - SCSE
Instructor G. Sasi Kumar , [email protected]
Venue : SJT – 302 Textbook
K.R. Venugopal, T. Ravishankar, and Rajkumar, "Mastering C++”, Tata McGraw Hill, 2008 .
Requirements Homework x2 5% (do not copy) CAT 30% Quiz & Oral presentation 15% Final exam 50%
Course Webpage
intranet.vit.ac.inhttps://www.facebook.com/groups/
oopskg2013/ Mail: [email protected]
Office: SasiKumar Gurumurthy SJT -310-A08 mobile:8870919338 [email protected]
Software1. System software2. Application software
System software: Directly interacts with the computer system. Operating system, compiler, interpreter are examples for this.Application software: All the programs written by a user with the help of any software is called as application software.
04/12/234 VIT - SCSE
Introduction to Programming Languages
The shift in programming language is categorized as following:
1.Monolithic Programming2.Procedural Programming3.Structural Programming4.Object Oriented Programming
04/12/235 VIT - SCSE
Monolithic Programming
This programming consists only global
data and sequential code.
Assembly language and BASIC
04/12/236 VIT - SCSE
Procedural Oriented Programming
Mainly comprises of algorithms.
FORTRAN and COBOL
The important features of Procedural Programming
areEmphasis is on doing things (algorithms)Large programs are divided into smaller programs
known as functions.Most of the functions share global dataData move openly around the system from function to
functionFunctions transform data from one form to anotherEmploys top-down approach in program design
04/12/237 VIT - SCSE
Structured programming
Pascal and CStructured programming is based upon the
algorithm rather than dataPrograms are divided into individual modules
that perform different task.Introduction of user defined data types
04/12/238 VIT - SCSE
Object Oriented Programming
C++, Smalltalk, Eiffel, Java, C# etc.Object oriented programming is a
programming methodology that associates data structures with a set of operators, which act upon it.
Depending on the object features supported, the languages are classified into two categories:
Object-Based Programming LanguagesObject-Oriented Programming Languages
04/12/239 VIT - SCSE
Object-based programming languages support encapsulation and object identity without supporting inheritance, polymorphism and message communications.
Example ADA.Object – Based language = Encapsulation + Object Identity
Object-Oriented Programming Language incorporate all the features of object-based programming languages along with inheritance and polymorphism.Object-oriented programming language = Object Based Language + Polymorphism +Inheritance
04/12/2310 VIT - SCSE
Features of Object oriented Programming
Improvement of over the structured programming languages.
Emphasis on data rather than algorithmData is hidden and cannot be accessed by
external functionsObjects may communicate with each other
through functionsNew data and functions can be easily added
whenever necessaryFollows bottom –up approach in program
design04/12/2311 VIT - SCSE
Basic concepts of object oriented programming
Objects – data and functionClassesData Abstraction : the act of representing
essential features without including the background details or explanations.
Encapsulation – data and function into a single unit
InheritancePolymorphismMessage Passing : It is the process of invoking
an operation on an object.Ex: ob.add(50);
04/12/2312 VIT - SCSE
Advantages of OOPThrough inheritance we can eliminate redundant
(Unnecessary) code and extend the use of existing classes.
The principle of data hiding helps for security.It is possible to have multiple objects.It is easy to partition the work in a project based
on objects.Object-oriented systems can be easily upgraded
from small to large systems.Message passing techniques for communication
between objectsCode reuse is possible.
04/12/2313 VIT - SCSE
Applications of OOPReal time systemsSimulation and modeling Object oriented databasesHypertext and hypermediaAI and expert systemsNeural networks and parallel programmingOffice automation systemsCIM / CAM / CAD systems
04/12/2314 VIT - SCSE