close
test_template

Object Oriented Programming Concepts

download print

About this sample

About this sample

close

Words: 641 |

Page: 1|

4 min read

Published: Mar 14, 2019

Words: 641|Page: 1|4 min read

Published: Mar 14, 2019

After studying this book till chapter fourteen, now we are able to write a simple program using C#. The readers need to observe that we write various programs in which we use a structure sounds like class. Then we made a function named main in that class. The class name is based on the name of the project. Why is it so? We need to know about the structure of C#. Basically C# is an object oriented language. Now a new question appears that what is object oriented means? Is this another new language on which C# rely or C# is a derived language from OOP (object oriented programming)? The answer is that OOP is not a language it is just a technique and C# is a programming language which use this technique. In this chapter we will discuss about the OOP and its basic concepts.

OOP (Object oriented programming) is a very vide concept of programming. In this book we are using C# as programming language. That is why it is necessary to know about OOP. OOP is a technique that how to program. It is beneficial as compared to structured approach. It is easy to find bugs and errors if we are using oop. But in structure approach it becomes difficult for a programmer. In structure approach if there is an error occur, the only programmer of that code can find the error or bug and fix it easily, if they try to resolve the error without the developer of that project then it costs much. But in oop this strictness removed. Oop is economical in this manner as compared to structured approach. OOP is a technique totally based on classes and objects.

Object Oriented Basic Concept:

There are some basic concepts of object oriented programming that includes classes, objects, association, composition, aggregation and the main four pillars of OOP which are as follows:

  1. Inheritance: It provides a feature called reusability of code. In inheritance we reuse the code. There are a base class exists which is sounds as parent class and a class called kids class which is inherited or derived from the base or parent class.
  2. The details of this chapter will be provided in the very next chapter No. 16.

    Polymorphism: It is clear from its name polymorphism that something is going same. It give us the facility to create the multiple functions with same name but different parameters providing the different output. A real world example is a family with the same surname. This will be explained later in chapter No. 17.

  3. Encapsulation: It is all about data binding it provide us the facility to bind the functions and data in the same class. A real world example is capsule.
  4. Abstraction: it is based on encapsulation and data hiding. It hides the details and show only the essential part or features of the application. In real world mobile phones are big example of abstraction i-e; we don’t know the internal details while calling to someone or using the service.
  5. Defining the classes and objects:

    Classes and objects:

    Classes are defined as the user defined data types. They explain the types of objects. Sometimes these two terms are used correspondently. But in actual object is an instance of the class. If we take the sketching and painting analogy then the class is only a sketch and the object is a colorful painting of that sketch. If we use construction approach then class is just a blue print and the object is fully prepared building from that blueprint.

    Get a custom paper now from our expert writers.

    Basically, the classes and objects, concept of OOP provides the easiness in coding or developing environment facilitating the coders with the following features:

  • Reusability
  • Reliability
  • Responsiveness
  • Error free coding
  • Encapsulation
  • Abstraction
  • Data hiding
  • Data binding
  • Strong security
  • Inheritance
  • Polymorphism
  • Association
  • Aggregation
  • Composition and much more.
Image of Alex Wood
This essay was reviewed by
Alex Wood

Cite this Essay

Object Oriented Programming Concepts. (2019, March 12). GradesFixer. Retrieved October 11, 2024, from https://gradesfixer.com/free-essay-examples/object-oriented-programming-concepts/
“Object Oriented Programming Concepts.” GradesFixer, 12 Mar. 2019, gradesfixer.com/free-essay-examples/object-oriented-programming-concepts/
Object Oriented Programming Concepts. [online]. Available at: <https://gradesfixer.com/free-essay-examples/object-oriented-programming-concepts/> [Accessed 11 Oct. 2024].
Object Oriented Programming Concepts [Internet]. GradesFixer. 2019 Mar 12 [cited 2024 Oct 11]. Available from: https://gradesfixer.com/free-essay-examples/object-oriented-programming-concepts/
copy
Keep in mind: This sample was shared by another student.
  • 450+ experts on 30 subjects ready to help
  • Custom essay delivered in as few as 3 hours
Write my essay

Still can’t find what you need?

Browse our vast selection of original essay samples, each expertly formatted and styled

close

Where do you want us to send this sample?

    By clicking “Continue”, you agree to our terms of service and privacy policy.

    close

    Be careful. This essay is not unique

    This essay was donated by a student and is likely to have been used and submitted before

    Download this Sample

    Free samples may contain mistakes and not unique parts

    close

    Sorry, we could not paraphrase this essay. Our professional writers can rewrite it and get you a unique paper.

    close

    Thanks!

    Please check your inbox.

    We can write you a custom essay that will follow your exact instructions and meet the deadlines. Let's fix your grades together!

    clock-banner-side

    Get Your
    Personalized Essay in 3 Hours or Less!

    exit-popup-close
    We can help you get a better grade and deliver your task on time!
    • Instructions Followed To The Letter
    • Deadlines Met At Every Stage
    • Unique And Plagiarism Free
    Order your paper now