IMPORTANT: Please read our Guide To Quality Writing before you begin posting!

Dismiss Notice
Please note that we are only approving writers from the US, UK and Canada at this time.

What is Object-oriented programming?

Discussion in 'Programming' started by othmanovich, Dec 15, 2015.

  1. othmanovich

    othmanovich New Member

    Joined:
    Dec 15, 2015
    Posts:
    9
    Likes Received:
    1
    Gender:
    Male
    Object-oriented programming move on from the simple procedural programming into some more structured, some more well defined, programming methodologies. Specifically, object-oriented programming is an incredibly popular methodology for programming.

    C and C++, and .NET, and Java and Python, these are all object-oriented programming languages, which give a great structure for organizing your codes to become more efficient and more relaible.
     
  2. tt1224780

    tt1224780 New Member

    Joined:
    Dec 20, 2015
    Posts:
    0
    Likes Received:
    1
    Gender:
    Male
    Object-oriented programming (OOP) refers to a type of computer programming (software design) in which programmers define not only the data type of a data structure, but also the types of operations (functions) that can be applied to the data structure.
    In this way, the data structure becomes an object that includes both data and functions. In addition, programmers can create relationships between one object and another. For example, objects can inherit characteristics from other objects.
    I am using java for programming which is also OOP type.
     
  3. SuperUser

    SuperUser New Member

    Joined:
    Jan 5, 2016
    Posts:
    10
    Likes Received:
    0
    Gender:
    Male
    Location:
    Everywhere
  4. tony

    tony New Member

    Joined:
    Jan 8, 2016
    Posts:
    0
    Likes Received:
    1
    Gender:
    Male
    It is for object, everything you can imaging in the world is object, and it is easy mapping to Object-oriented programming, so you easy programming with it
     
  5. John129

    John129 New Member

    Joined:
    Jan 14, 2016
    Posts:
    13
    Likes Received:
    1
    As the name indicates, Object Oriented Programming is the approach of giving more importance for the object rather than the procedure. As a programmer, I must say that it was a revolutionary idea that changed the approach towards implementing a solution for a particular programming requirement.

    Allow me to elucidate this using an example. In Object Oriented Programming we focus on the entity rather than the process. Suppose we need to make an employee management program. What we do is, we create a class and give it a name, say 'employee'. This 'employee' class will have certain properties such as the name of employee, age, employee ID, designation etc. Along with properties, the employee class will have certain functions that handle the activities of an employee, some functions can be 'Apply for leave', 'Book an appointment' etc. So, if we need to create the record of all the employees in the company, we can just create as many 'objects' of the class 'employee' as needed. Each object corresponds to a particular employee in the company and will have all the properties and functions of the 'employee' class. This enables us to do any manipulation on a particular employee from the object that corresponds to that particular employee.In short, everything will be enclosed in a single object - neat, clean and effective.
     
  6. katalan1

    katalan1 New Member

    Joined:
    Dec 29, 2019
    Posts:
    12
    Likes Received:
    0
    Gender:
    Male
    Location:
    .
    The idea of object oriented programming, is to make coding like a real life.
    I would give you this example:
    Anything is something. this something is Object and every object has properties and any functions, for example at humans- breath is a "function" and hair color is a property.
    This is much more easier for humans to work with this because it something that we are familiar with.
    So if you want an example for OOP you can take this- Humans!
    The class of human- The DNA
    The instance of the humans (which called the object)- The human!
     

Share This Page