Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Object-Oriented Programming: Concepts and Comparison, Study notes of Java Programming

A basic introduction to object-oriented programming (oop), contrasting it with procedural programming (pop). It highlights key oop concepts like objects, classes, abstraction, encapsulation, inheritance, polymorphism, message passing, and dynamic binding. The document also presents a table comparing pop and oop, outlining their differences in terms of program structure, data focus, approach, access specifiers, data security, and modification ease. It concludes by mentioning java as an example of an object-oriented language.

Typology: Study notes

2024/2025

Available from 03/29/2025

vishnu-kk07
vishnu-kk07 🇮🇳

5 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
INTRODUCTION TO
OOP
pf3
pf4
pf5

Partial preview of the text

Download Object-Oriented Programming: Concepts and Comparison and more Study notes Java Programming in PDF only on Docsity!

INTRODUCTION TO

OOP

Introduction to OOP

▪ Initially computer invented, binary language that is

used to write programs.

▪ Programs are large in size,difficult to write in

binary,then assembly language (not-user friendly)

introduced to write programs.

▪ Change in user requirements,size,complexity of

programs,leads to the development of (procedural

oriented program) unstructured

language (BASIC,FORTRAN).All instructions

written one after the another became difficult to trace

and debug errors.

▪ Then structured language OOP(object oriented

programming) paradigm were developed.

Difference b/w POP & OOP

POP(Procedure Oriented Programming OOP(Object Oriented Programming)

  • In this programs are divided into functions( procedures ). - Programs are divided into parts known as objects.
  • The main focus of POP is on the procedures. - The main focus of OOP is on data.
  • It follows top-down approach. • It follows bottom-up approach.
  • In this most functions use global data.POP does not have any access specifiers. - It has access specifiers such as public,private etc.
  • POP does not provide any data security .. • It provides data hiding,data associated with the program,so security is provided. **- Modification is difficult. • Ease of modification.
  • Eg:C,COBOL,PASCAL,FORTRAN,** BASIC etc.. - Eg:CPP,JAVA,PERL etc..

Basic Concepts of OOP

▪ Java is an Object-Oriented Language.

▪ As a language that has the Object-Oriented feature, Java supports the following fundamental concepts −

Objects

Classes

Abstraction

Encapsulation

Inheritance

Polymorphism

Message Passing

Dynamic Binding