Sei sulla pagina 1di 17

Object Oriented Paradigms

Hazara university, Information Technology


Department
lecture 1

Mr. Asif Umer,


MS (Computer Science)
Comsats Abbottabad
asifumer1990@gmail.com

OOP Lecture 1 – Introduction BCS 2nd 1


Course Theme
• Lecture:
– Will cover contents of the Course Text Book
– Other supporting techniques and concepts

• Lab: Lectures programs implementation


– Lab assignment
• Assignment:
– Practical problems

• Quiz:
– At least one per week
– Will cover the previous lectures

• Semester Project
– Small Project but a full fledge project to cover most of the lectures
2
Evaluation Criteria

Final Exam 40 % + 15% Final


project viva
Mid Term - 1 15 %
Attendance 5%
Quizzes/Assignments 25 %

3
Text Books
• Understanding Object Oriented Programming,
Budd, Addison Wesley.

• Java: How to Programme, 10/e, Deitel and


Deitel, Prentice Hall, 0131016210/
0131202367

4
Course Contents
• Evolution of OOP, OOP concepts and principles,
problem solving in OO paradigm, OO program
design process, classes, methods, objects and
encapsulation; constructors and destructors,
operator and function overloading, virtual
functions, derived classes, inheritance and
polymorphism. I/O and file processing, exception
handling.

5
Evaluation of OOP
• The invention of the object
oriented technology eliminates the flows faced because of
procedure oriented approach.
• The OOP approach binds the data and functions that work
on it together. 
• This secure data from any changes from outside the
module. 
• The system is divided into numerous invisible entities
called objects.
• Objects ARE INDEPENDENT OF EACH OTHER. They are
responsible for managing their own state and offering
services to their objects. 6
OOP Definition

• “Object oriented paradigm is an approach


that provides a way of modularizing programs
by creating partitioned memory area for both
data and functions that can be
used as templates for creating copies of such
modules on demand.”

7
Database Systems Lecture 1 - Intoduction 8
Benefits of oop
• 1. The principle of data hiding helps the
programmer to build secure programs.
• 2. It is easy to partition the work in a project
based on objects.
• 3. Object oriented systems can be easily
upgraded from small to large systems.
• 4. We can eliminate redundant code and extend
the use of existing classes.

9
Cont…
• 5. OOP provides an advantage in production and
maintenance of software.

• 6. Object oriented program involves the


identification and implementation of different
classes of objects and their behavior.

• 7. Software complexity can be easily managed.

• 8. It is possible to have multiple instance of an


object without any interface.

10
APPLICATIONS OF OOP

• Artificial intelligence and expert system.

• Simulation and modeling studies.

• Object oriented database systems.

• Object oriented operating systems.

• Real time systems.

• Office automation systems.

• Graphical user interface (GUI).

11
• etc
OBJECT ORIENTED LANGUAGE

•  A language that is specially designed to support the


oop concepts makes it easier to implement them.
• The language should support several of the oop
concepts to claim that they are object oriented.
• Depending upon the features they support, they
can be classified into the following two categories:
• 1. Object based programming languages.
• 2. Object oriented programming languages.

Database Systems Lecture 1 - Intoduction 12


Object Oriented and Object based languages

• Object-oriented language supports all the


features of OOPs and Object-based language
doesn't support all the features of OOPs like
Polymorphism and Inheritance.

• They are giving example of javascript as object


based and java as object oriented

Database Systems Lecture 1 - Intoduction 13


First OOP language
• Simula is considered the first object-oriented
programming language. The programming paradigm
where everything is represented as an object is known
as a truly object-oriented programming language.
1960
• Smalltalk is considered the first pure object-oriented
programming language. 1970

• The popular object-oriented languages are Java, C#, 


PHP, Python, C++, etc.
Database Systems Lecture 1 - Intoduction 14
15
16
• END of 1 Lecture

Questions

Database Systems Lecture 1 - Intoduction 17

Potrebbero piacerti anche