lecture 1
TRANSCRIPT
![Page 1: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/1.jpg)
Lecture-1Instructor Name:
Object Oriented Programming
![Page 2: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/2.jpg)
Today’s Lecture
Introduction (Course Objective)
What is Object Orientation?
2
![Page 3: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/3.jpg)
Introduction
Course Objective Objective of this course is to make students familiar with the
concepts of Object Oriented Programming
Software Developers are discovering that using a object
oriented design and implementation approach can make
software development much more productive than was possible
with earlier popular techniques like “Structured Programming”.
These concepts will be reinforced by their implementation in
Java
3
![Page 4: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/4.jpg)
Introduction
Course Contents The main contents of the course would be:
Object Orientation
Objects & Classes
Overloading & Overriding
Abstraction
Inheritance
Polymorphism
Exception Handling
MultiThreading
GUI Component4
![Page 5: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/5.jpg)
Introduction
Recommended Books The Recommended books for this course are
5
![Page 6: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/6.jpg)
Introduction
Marks Distribution (Theory) Mid Exam 20% (Min 2
Assignments)
Quiz 10% (Min. 3 Quiz)
Assignment & Class participation 10% (0 marks <
75%)
Final Examination 60% (MCQ,
Logical,Theory)Marks Distribution (Lab)
Attendance 5%
Lab Tasks 5%
Viva 10%
Practical Exam 30% (Code + Logic + Compilation + Output)
6
![Page 7: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/7.jpg)
Object Orientation
What is Object Orientation? “Object" refers to a particular instance of a class.
whereas the object can be a combination of variables, functions, and data
structures.
Object-oriented programming (OOP) is a programming
language model organized around objects rather than "actions"
and data rather than “logic”. Object-oriented or object-orientation is a software engineering concept, in
which concepts are represented as "objects“
It is a technique in which we visualize our programming problems in the form
of objects and their interactions as happened in real life
OO Model consists of several interacting objects.
7
![Page 8: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/8.jpg)
Object Orientation
Object Orientation ExamplesConsider the objects around us in our daily life. These objects interacts with each other to perform different operations.
8
Lives in
Drives
![Page 9: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/9.jpg)
Object Orientation
Object Orientation Examples
9
![Page 10: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/10.jpg)
Object Orientation
10
![Page 11: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/11.jpg)
Object Oriented Model
What is a Model? A model is abstraction of something.
Purpose is to understand the product before using it.
Example are Highway Map , Architectural Design and
Mechanical models.
What is OO Model in Programming? In the context of programming, Models are used to understand
problem before start developing it.
Object Oriented Models can be developed by showing
interaction among objects to understand a system
implementation.
11
![Page 12: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/12.jpg)
Object Oriented Model
12
Object Oriented Model Example 1
![Page 13: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/13.jpg)
Object Oriented Model
13
Object Oriented Model Example 2
![Page 14: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/14.jpg)
Object Orientation
Object Orientation - Advantages An Object Oriented Model Maps directly to reality as seen in the
previous examples.
An Object Oriented Model for a problem can be developed
easily
An Object Oriented Model is easily understandable.
An Object Oriented Model objects are reusable.
Implementation
Can be implemented easily by using any Object Oriented
Programming Language Like, Java in our case 14
![Page 15: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/15.jpg)
Object Orientation
What is an Object? An Object is
Something tangible (Ali, School, House, Car)
Something conceptual (that can be apprehended
intellectually for example time date and so on..)
OOP uses objects as its Fundamental Building Blocks
Objects are the basic run time entities in an object oriented
system
Every object is associated with data and functions which
defines meaningful operations on that object
Object is a real world existing entity 15
![Page 16: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/16.jpg)
Object Orientation
What is an Object? An Object has
State (Attributes)
Well-defined behaviour (Operations)
Unique Identity
16
![Page 17: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/17.jpg)
Object Orientation
What is an Object? An Object is an entity that has state, behaviour and identity.
There are many object around us. For Example, a computer mouse is an object. It is considered as
an object with state and behavior
17
![Page 18: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/18.jpg)
Object Orientation
What is an Object?
18
![Page 19: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/19.jpg)
Object Orientation
Types of ObjectsAn object may be tangible or Intangible
19
![Page 20: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/20.jpg)
Object Oriented Programming
What is Object Oriented Programming? Object Oriented Programming (OOP) is an engineering approach
for building software systems based on the concepts of classes and objects that are used for modeling real world entities
Object Oriented programming is an approach that provides a way of modularizing programs by creating partitioned memory area of both data and functions that can be used as template for creating copies of such modules on demand
Object Oriented programming is a programming methodology that associates data structure with a set of operators which act upon it. 20
![Page 21: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/21.jpg)
Object Oriented Programming
What is Object Oriented Programming? Object-oriented programming is a programming methodology
characterized by the following concepts:
1.Abstraction.
2.Encapsulation
3.Information hiding
4.Polymorphism
5.Inheritance
21
![Page 22: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/22.jpg)
22
Installing JDK
![Page 23: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/23.jpg)
23
Installing JDK(Download)
![Page 24: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/24.jpg)
24
Installing JDK(Downloading)
![Page 25: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/25.jpg)
25
Installing JDK
![Page 26: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/26.jpg)
26
Installing JDK
![Page 27: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/27.jpg)
27
Installing JDK
![Page 28: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/28.jpg)
28
Installing JDK
![Page 29: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/29.jpg)
29
Installing JDK
![Page 30: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/30.jpg)
30
Installing JDK
![Page 31: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/31.jpg)
31
Installing JDK
![Page 32: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/32.jpg)
32
Installing JDK
![Page 33: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/33.jpg)
33
Installing JDK
![Page 34: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/34.jpg)
34
Installing JDK
![Page 35: Lecture 1](https://reader035.vdocuments.us/reader035/viewer/2022070509/58a169571a28abc1708b6865/html5/thumbnails/35.jpg)
35