Docsity

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

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