1. P1WU
UNIT – I: BASICS OF C PROGRAMMING
TOPIC -1 : OVERVIEW OF OOP
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
2. UNIT I INTRODUCTION TO OOP AND JAVA
1. Overview of OOP
2. Object oriented
programming paradigms
3. Features of Object
Oriented Programming
4. Java Buzzwords
5. Overview of Java – Data Types,
Variables and Arrays
6.Operators
7.Control Statements
8.Defining classes in Java
9.Constructors
10.Methods
11. Access specifiers
12.Static members
13. JavaDoc comments
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
3. INTRODUCTION TO OBJECT ORIENTED PROGRAMMING
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
4. What is Program ?
•Set of instructions that are used to instruct
the computer machine to do designated set
of operations.
•Set of code that does predefined set of tasks
inside a computer machine.
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
5. What is Programming ?
•The action or doing of Program or Code is
called Programming
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
6. What is Programming Paradigm ?
• Programming Paradigms are the ways to classify programming
languages based on their features.
• Languages are classified into multiple paradigms.
• Some paradigms are concerned with mainly with implications for the
execution model of the language
• Allowing Side effects, or whether the sequence of operations is defined by
the execution model.
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
7. Types of Programming Paradigm
• Common Programming Paradigms includes :
• Imperative which allows side effects
• Functional which disallows side effects
• Declarative which does not state the order in which operations
execute.
• Object-oriented which groups code together
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
8. MACHINE CODE
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
9. PROCEDURAL LANGAUGE
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
10. 1.1 Introduction to Object – Oriented Programming
• Object-Oriented Programming (OOP) is a programming
language model organized around objects rather than actions
and data.
• An object-oriented program can be characterized as data
controlling access to code.
• An object oriented approach aim is to remove the drawback
encountered in the procedural approach.
• The programming paradigm object treats data as an element in the
program development and holds it tightly rather than allowing it to
move freely around the system.
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
11. Features of Procedural Oriented Programming
• The higher level of abstraction:
• Top-down approach support abstraction at the Functional level
while object oriented approach support abstraction at the object
level.
• The seamless transition among different software
development phases:
• It uses the same language for all phases, which reduces the level of
complexity and redundancy makes software development clear
and robust.
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
12. Features of Procedural Oriented Programming
• Good programming practice:
• The subroutine and attributes of a class are held together tightly.
• Improves reusability:
• it supports inheritance due to which classes can be built from each other.
• So only difference and enhancement between classes need to be designed
and coded.
• All the previous functionality remains as it is and can be used without
change.
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
13. Difference between Procedure-Oriented Programming (POP)
Vs Object-Oriented Programming (OOP)
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
Procedure-Oriented Programming Object-Oriented Programming
In POP, program is divided into small parts
called functions
In OOP,program called objects is divided
into parts
In POP, Importance is not given to data but
to functions as well as sequence of actions to
be done.
In OOP, Importance is given to the data rather
than procedures or functions because it works
as a real world.
POP follows Top Down approach. OOP follows Bottom Up approach.
POP does not have any access specifier. OOP has access specifiers named Public,
Private, Protected, etc.
14. Difference between Procedure-Oriented Programming (POP)
Vs Object-Oriented Programming (OOP)
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
Procedure-Oriented Programming Object-Oriented Programming
In POP, Data can move freely from function to
function in the system.
In OOP, objects can move and communicate with
each other through member functions.
To add new data and function in POP is not so easy. OOP provides an easy way to add new data and
function.
In POP, Most function uses Global data forsharing
that can be accessed freely from function to function
in the system.
In OOP, data can not move easily from functionto
function,it can be kept public or private so we can
control the access of data.
15. Difference between Procedure-Oriented Programming (POP)
Vs Object-Oriented Programming (OOP)
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
Procedure-Oriented Programming Object-Oriented Programming
POP does not have any proper way for hiding
data so it is less secure.
OOP provides Data Hiding so provides more
security.
In POP, Overloading is not possible. In OOP, overloading is possible in the form of
Function Overloading and Operator Overloading.
Example of POP are : C, VB, FORTRAN, Pascal.
Example of OOP are : C++, JAVA, VB.NET,
C#.NET.
16. THANK YOU
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA
17. AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMESTER – III
UNIT I INTRODUCTION TO OOP AND JAVA