Object Oriented Paradigm

Good Essays
The Three Tenets of Object-Oriented Programming Languages
According to Bjarne Stroustrup, author of the C++ programming language, for a language to call itself object-oriented, it must support three concepts: objects, classes, and inheritance. However, object-oriented languages have come to be more commonly thought of as those languages built on the tripod of encapsulation, inheritance, and polymorphism. The reason for this shift in philosophy is that over the years we've come to realize that encapsulation and polymorphism are just as integral to building object-oriented systems as class and inheritance.
Encapsulation
As I mentioned earlier, encapsulation, sometimes called information hiding, is the ability to hide the internals of an object from its users and to provide an interface to only those members that you want the client to be able to directly manipulate. However, I also spoke of abstraction in the same context, so in this section, I'll clear up any confusion regarding these two similar concepts. Encapsulation provides the boundary between a class's external interface—that is, the public members visible to the class's users—and its internal implementation details. The advantage of encapsulation for the class developer is that he can expose the members of a class that will remain static, or unchanged, while hiding the more dynamic and volatile class internals. As you saw earlier in this chapter, encapsulation is achieved in C# by virtue of assigning an access modifier—public, private, or protected—to each class member.
Designing Abstractions
An abstraction refers to how a given problem is represented in the program space. Programming languages themselves provide abstractions. Think about it like this: When was the last time you had to worry about the CPU's registers and stack? Even if you initially learned how to program in assembler, I'll bet it's been a long time since you had to worry about such low-level, machine specific details. The reason

You May Also Find These Documents Helpful

  • Powerful Essays

    Object-Oriented Programming Paradigm Advantages * Because of the concept of inheritance in OO programming, existing codes can be easily modified because new codes can be added with little modifications made. That is to say it is easily extensible and codes can be easily re-used. * OOP provides a clear program structure because the solution to be developed can be broken down into objects and approached as such. This gives room for maintainability of the program because problems would be easy…

    • 633 Words
    • 3 Pages
    Powerful Essays
  • Powerful Essays

    Object Oriented

    • 6144 Words
    • 25 Pages

    2003 Page1 Object-Oriented Requirements Engineering and Management Joseph E. Kasser DSc, CEng, CM, MIEE Systems Engineering and Evaluation Centre University of South Australia (UniSA) Mawson Lakes South Australia, 5095 Joseph.kasser@unisa.edu.au Abstract Object-Oriented requirements engineering is an approach to encapsulating information about the process and product, as well as functionality into a requirements object. This paper identifies properties of a requirement object based on information…

    • 6144 Words
    • 25 Pages
    Powerful Essays
  • Good Essays

    Essay Object oriented programming was developed because limitation was discovered in earlier approaches to programing. The evolution to the object oriented programming is based on the following previous languages. Evolution in computer programming languages: In the earlier time, at the beginning of programming the “Punch Card“ was used for the programming purpose. Then with the passage of time human tried to work on the binary digits called “Machine Language”. 1. Machine Language In the machine…

    • 996 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Phase 1 Discussion Board 2: Object Oriented Techniques IT110_1302A-01 Introduction to Programming Instructor: Steve Montgomerie Jeffrey Graham April 10, 2013 Colorado Technical University In order to better understand object oriented programming (OOP) this paper will discuss the similarities and differences between OOP and procedural programing (PP). It will also provide information on four basic object oriented concepts of objects, classes, methods, and polymorphism. The some similarities…

    • 480 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Object Oriented Programming

    • 21961 Words
    • 88 Pages

    Object-Oriented Programming School of Computer Science University of KwaZulu-Natal February 5, 2007 Object Oriented Programming using Java Notes for the Computer Science Module Object Oriented Programming COMP200 Adapted from Introduction to Programming Using Java Version 5.0, December 2006 by David J. Eck http://math.hws.edu/javanotes/ Adapted by Anban Pillay School of Computer Science University of KwaZulu-Natal Durban February 2007 3 4 Contents 1 Introduction to Objects…

    • 21961 Words
    • 88 Pages
    Powerful Essays
  • Powerful Essays

    Object Oriented Programming

    • 13874 Words
    • 63 Pages

    Object-Oriented Programming with Objective-C Contents Introduction 5 Who Should Read This Document 5 Organization of This Document 6 See Also 6 Why Objective-C? 7 Object-Oriented Programming 8 Data and Operations 8 Interface and Implementation 9 The Object Model 12 The Messaging Metaphor 13 Classes 15 Modularity 16 Reusability 16 Mechanisms of Abstraction 18 Encapsulation 18 Polymorphism 19 Inheritance 20 Class Hierarchies 21 Subclass Definitions 21 Uses of Inheritance…

    • 13874 Words
    • 63 Pages
    Powerful Essays
  • Good Essays

    OBJECT-ORIENTED DOCUMENTATION Johannes Sametinger C. Doppler Laboratory for Software Engineering Johannes Kepler University of Linz A-4040 Linz, Austria Abstract Object-oriented programming improves the reusability of software components. Extensive reuse of existing software enhances the importance of documentation. In order to increase the productivity in documenting and to make the structure of documentation better suitable for object-oriented software systems, we suggest to apply object-oriented…

    • 4744 Words
    • 19 Pages
    Good Essays
  • Satisfactory Essays

    Craft-Oriented Objects

    • 252 Words
    • 2 Pages

    We encounter many craft- oriented objects day to day. I do not think I really thought about how objects were made and their value in life until I received this assignment. As I was thinking about all of the things that are craft- oriented, I especially thought about things at work and my home. I actually work at a dress shop and I’ve thought about how those dresses were made. Every dress company has a location where they make their dresses, like China. Each dress is handmade and takes many…

    • 252 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    5 Revisiting OOP CS223 CS223- Object Oriented Programming Spring 2012 Dr. Fawad Hussain What we have done so far? What is object-Oriented Programming? What is an object? What is a class? What are attributes? What are methods? How to write a simple class in C++. Constuctors Default, overloaded, Destructors But how to identify objects?? 2 Ghulam Ishaq Khan Institute – Spring 2012 Todays Lecture Revisiting OOP Identifying Objects, basics of OO analysis and Design…

    • 935 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    The Object-Oriented Question

    • 4233 Words
    • 17 Pages

    The Object-Oriented Question: A Contribution to Treatment Technique B. D. Margolis, Ph.D. Introductory Observations The object-oriented question is a technical device favored in the treatment of the preoedipal patient (Spotnitz, 1969, 1976). It is, to all appearances, relatively uncomplicated, and seems to play a largely protective role in safeguarding the patient 's fragile ego from experiencing more tension that it can tolerate. If, in the process, it helps resolve resistance and fosters the…

    • 4233 Words
    • 17 Pages
    Powerful Essays