Object Oriented Pgogramming (OOP)



Object Oriented Pgogramming (OOP) :

                It is a new way of programming to solve the problems which are large in size this is known as object oriented programming. Object oriented programming is the best way of programming and best way to removes the errors which is in the program, you developed. Objest oriented programming is also known as OOP.


Features of Objest Oriented Programming :

            The features of object oriented programming is four I will discuss all of them :

  • 1.      Data Abstraction:

Data abstraction means the create classes from the objects in the program or making software. We create classes from the object then we easily create program or software.

  • 2.      Data Enacapsulation :

Data encapsulation means the variables, data and functions are defined at the same class in the program. The variables and function are define within the class because we correct the errors easily and manage the program easily.

  • 3.      Data Hiding :

Data hiding means when we make a data private so that it cannot be accessible outside the class in the program. We make data private or public, if we make private the data cannot access outside the class.

  • 4.      Inheritance :

Inheritance means we create classes, which is inherit characteristics of old class in the program.
 

Structured Programming



Structured Programming:

            Structured Programming is the initial stage of programming. This programming is use to improve clearity, quality and development. This programming is very simple. In this programming, cannot define the classes only can define main, and the functions.

Structured Programming Problems :

                There are three big problems in structured programming i.e :

  • 1.      Program Size:

Program size is a big problem of structured programming. If the program is small which is manage easily but the program is large then the program is manage very difficult and very difficult to solve the errors.

  • 2.      User change Value Without Function :

This is the second problem of Structured Programming. If the user define the value in the main function than the program is not fully worked properly (some errors in the output).This is also known as unrestricted access to data.

  • 3.      Separate Variable & Functions :

This is the third big problem of the Structured Programming. Separation of data and functions which is related with each other. If the software developer or programmer does not  separate the variables and functions in the program than the coding of program is mixed and they can’t find the errors and they can’t manage the program.