Skip to main content

Java Object Oriented Programming (OOPs)

Java OOPs


Java Object Oriented Programming (OOPs)
One prime characteristic that is constant in the world of software is the change and advancement in software. That change is one of the most critical aspects of software development. Development of new tools and techniques is common for everyday technology users. For software engineers, the most important thing is the maintainability, portability, reusability, integrity, security, and user-friendliness. So to build today’s complex software it is just not enough to put together a sequence of programming statements or procedures. Programmers need to use sound construction techniques and program structures that are easy to figure out implement and modify in a wide variety of situations. This is possible and efficient to use with Object-oriented Programming techniques.
Since the inventions of the computer and programming languages, many approaches have been tried. These includes:
  • Modular Programming
  • Top-down Programming
  • Structured Programming
  • Bottom-up programming
Java is purely under the category of Object-oriented Programming.

Object-Oriented Paradigm

The main objective of the object-oriented technique is to eliminate some flaws encountered in the procedural approach. OOP handles and treats data as a critical element and never allows these data to move freely around the system. It binds data more closely to the functions and protects them from unintentional alteration by other functions.
OOP allows programmers to break down a problem into the number of entities called Objects and then build data and functions around these entities. The combination of data and methods make up an object.
i.e. Object = data + method
Figure – Object Representation:

In the above figure, a circle is an object and it comprises of data and methods where the data is surrounded by methods.

Major Objectives of Object-Oriented Programming

  • The emphasis is on the data rather than the procedures.
  • Methods that operate on data are tied together in a data structure.
  • Programs are divided into small instance called Objects.
  • Data remains hidden and cannot be accessed by external functions.
  • Objects may communicate with each other through methods.
  • The programs follow the bottom-up approach.
  • New data and methods can be easily added whenever necessary.

Basic Terms and Features that are used and provided by OOP

  • Classes and Objects
  • Data Abstraction
  • Data encapsulation
  • Inheritance
  • Polymorphism
  • Dynamic Binding

Advantages of OOP

  • Code recycle and reuse.
  • Wrapping up of data into a single unit.
  • Easy to partition the work in a project based on objects.
  • Message passing technique between objects for communication makes interface description with external systems much simpler.
  • Software Complexity can be easily handled and managed.
  • Possible to map objects in a problem domain within a program.
  • Data hiding is possible.
  • Use of inheritance can eliminate redundant codes in a program.

Comments

For Programs Click Here

Popular posts from this blog

Syllabus

Syllabus  C Programming Tutorials C Tutorial C Introduction History of C Programming Language C Installation C Program Structure C Input and Output (I/O) C Format Specifiers Declaration & Assignments C Tokens C Identifiers C Keywords C Constants C Operators C Data Types C Variables C Preprocessors C Type Casting C Custom Header File Flow Control C Decision Making C if Statements C if-else Statements C Nested if-else Statements C else-if Statements C goto Statement C switch Statements C Loops C while loops C do while loops C for loops Functions C Functions C Function Arguments C Library Functions C Variable Scope Arrays & Strings C Arrays C Strings Pointers C Pointers C Dynamic Memory Allocation Structure & Union C Structures C Unions File I/O C File Handling C fopen C fclose C getc C putc C getw C putw C fprintf C fscanf C fgets C fputs C feof                                                                 Other C99 Features C Error Handling

Python Overview

Python Overview Python is a general purpose object-oriented programming language with high-level programming capabilities. It has become famous because of its clear and easily understandable syntax, portability and easy to learn. Some Facts About Python Python was developed in the late eighties i.e. late 1980’s by  Guido van Rossum  at the  National Research Institute for Mathematics and Computer Science  in the Netherlands as a successor of ABC language capable of exception handling and interfacing. Python is derived from programming languages such as: ABC, Modula 3, small talk, algol-68. PHP page is a file with  .py  extension that contains could be the combination of HTML Tags and Python scripts. In December 1989 the creator developed the 1st python interpreter as a  hobby  and then in 16 October 2000, Python 2.0 was released with many new features. On 3rd December 2008,  Python 3.0  was released with more testing and includes new features. Python is an open source scripting languag

Syllabus

Python Tutorials Python Tutorial Python Overview Python Installation Basics of Python Programming Python Operators Python Keywords Python Numbers Python Strings Python Data Types Python Variables Python Lists Python Tuples Python Date and Time Python Decision Making Python Loops Python File Handling Python Dictionaries Python Functions Python Modules Python Exceptions Handling Python Object Oriented Inheritance in Python Python Regular Expressions Python Networking Programming Python Multithreaded Programming Python CGI Programming Python Database Connection Python Metaprogramming Python Data Processing And Encoding Python GUI Programming