Preview

Object Oriented Paradigm

Good Essays
Open Document
Open Document
934 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Object Oriented Paradigm
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

  • Satisfactory Essays

    What is procedural or algorithmic programming? What is object-oriented programming? What is the role of code reuse in object-oriented programming? Under what circumstances is object-oriented programming best suited? Under what circumstances is procedural or algorithmic programming best suited?…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Mat 540 Week 4 Paper

    • 1775 Words
    • 8 Pages

    Although the details can be quite complex, these details are the basic principles of object-oriented programming.…

    • 1775 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    What is procedural or algorithmic programming? What is object-oriented programming? What is the role of code reuse in object-oriented programming? Under what circumstances is object-oriented programming best suited? Under what circumstances is procedural or algorithmic programming best suited?…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1310 Unit 7

    • 2452 Words
    • 10 Pages

    Encapsulation is an attribute of object design. It means that all of the object's data is contained and hidden in the object and access to it restricted to members of that class. A procedure is a type of encapsulation because it combines a series of computer instructions. Likewise, a complex data type, such as a record or class, relies on encapsulation.…

    • 2452 Words
    • 10 Pages
    Powerful Essays
  • Good Essays

    There are many ways and methods by which a programmer can hide his code that is developed for commercial or personal use. .NET applications have a high cost and are susceptible to attacks by on unethical traders integrate market as stakes run high in hacking these codes. Thus, .NET Obfuscators play a vital role in protecting these programs. The Merriam-Webster dictionary defines Obfuscation as: to make obscure <obfuscate the issue>: confuse <obfuscate the reader>: To be evasive, unclear, or confusing. It also means to confuse or bewilder.…

    • 793 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Psy300 Week 8

    • 760 Words
    • 4 Pages

    Understanding object-oriented methodologies is often difficult. You already understand that object-oriented analysis and design emulates the way human beings tend to think and conceptualize problems in the everyday world. With a little practice, object-oriented programming will become second nature to you.…

    • 760 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Each new class obtained through inheritance is known as derived class, and classes from which it derives are called base classes. In addition, each derived class can be used as a base class for a new derived class. And each derived class can be one or more base classes. In the latter case are referred to bypass manifold.…

    • 290 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Envisioning program components as objects that are similar to concrete objects in the real world is the hallmark of _____________.…

    • 4265 Words
    • 23 Pages
    Satisfactory Essays
  • Good Essays

    Object Oriented Processes

    • 400 Words
    • 2 Pages

    Therefore the car will start. Then when the car is started, the driver sends another message by shifting the gear so that when the driver places the foot on the accelerator, it therefore, sends another message to the engine how the idle will be. How much RPM’s will run so that the car will begin to accelerate given the selection of gear the driver has placed it in. These are messages sent back and forth.…

    • 400 Words
    • 2 Pages
    Good Essays
  • Good Essays

    CHAPTER11

    • 2591 Words
    • 18 Pages

    Which line of code will declare and create an instance of a new object variable called…

    • 2591 Words
    • 18 Pages
    Good Essays
  • Satisfactory Essays

    What is procedural or algorithmic programming? What is object-oriented programming? What is the role of code reuse in object-oriented programming? Under what circumstances is object-oriented programming best suited? Under what circumstances is procedural or algorithmic programming best suited?…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Intro to Programming

    • 390 Words
    • 2 Pages

    Procedure Programming is broken down to collection, variable and subroutine, whereas Object Oriented Programming is broken down into object that shows data and methods.…

    • 390 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    However classes and object are not similar as they have certain differences. First of all class is a template, blueprint or contract that defines what an object’s data field and method will be whereas an object is an instance of a class. (Liang, 2011) Unlike objects classes have special methods called constructors which initialize data fields of objects. Also a class defines the abstract characteristic of a thing i.e. its properties and behaviors whereas an object only provides for a replication of an existing definition in this case the class since it is not self defining.…

    • 266 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    1. Classes 2. Objects 3. Data abstraction 4. Data encapsulation 5. Inheritance 6. Polymorphism 7. Dynamic Binding 8. Message Passing…

    • 462 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Java Programming- Chinmay

    • 6385 Words
    • 41 Pages

    Object Oriented: In Java, everything is an Object. Java can be easily extended since it is…

    • 6385 Words
    • 41 Pages
    Powerful Essays