Preview

Pitfalls of Object Oriented Programming

Powerful Essays
Open Document
Open Document
2189 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Pitfalls of Object Oriented Programming
Sony Computer Entertainment Europe Research & Development Division

Pitfalls of Object Oriented Programming
Tony Albrecht – Technical Consultant Developer Services

What I will be covering

• A quick look at Object Oriented (OO) programming • A common example • Optimisation of that example • Summary
Slide 2

Object Oriented (OO) Programming
• What is OO programming?
– a programming paradigm that uses "objects" – data structures consisting of datafields and methods together with their interactions – to design applications and computer programs. (Wikipedia)



Includes features such as
– – – – Data abstraction Encapsulation Polymorphism Inheritance

Slide 3

What’s OOP for? • OO programming allows you to think about problems in terms of objects and their interactions. • Each object is (ideally) self contained
– Contains its own code and data. – Defines an interface to its code and data.

• Each object can be perceived as a „black box‟.
Slide 4

Objects • If objects are self contained then they can be
– Reused. – Maintained without side effects. – Used without understanding internal implementation/representation.

• This is good, yes?
Slide 5

Are Objects Good? • Well, yes • And no. • First some history.

Slide 6

A Brief History of C++

C++ development started

1979

2009

Slide 7

A Brief History of C++

Named “C++”

1979 1983

2009

Slide 8

A Brief History of C++

First Commercial release

1979

1985

2009

Slide 9

A Brief History of C++

Release of v2.0

1979

1989

2009

Slide 10

A Brief History of C++
Added • multiple inheritance, • abstract classes, • static member functions, Release of v2.0 • const member functions • protected members.

1979

1989

2009

Slide 11

A Brief History of C++

Standardised

1979

1998

2009

Slide 12

A Brief History of C++

Updated

1979

2003

2009

Slide 13

A Brief History of C++

C++0x

1979

You May Also Find These Documents Helpful

  • Powerful Essays

    Mat 540 Week 4 Paper

    • 1775 Words
    • 8 Pages

    If you consider a kitchen, you see it is also composed of several, smaller components, including the oven, refrigerator, and microwave. Top-level objects are composed of smaller components that do the actual work. This perspective is a very natural way of looking at our world, and one with which we are all familiar. We do the same thing in object-oriented programming:…

    • 1775 Words
    • 8 Pages
    Powerful Essays
  • Better Essays

    Venit, S., & Drake, E. (2011). Prelude to Programming Concepts and Design (5th ed.). Boston, MA: Addison-Wesley.…

    • 1800 Words
    • 6 Pages
    Better Essays
  • Powerful Essays

    Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Chapter 25 Chapter 26 Chapter 27 An Introduction to Hardware, Software, and the Internet An Introduction to Software Development Objects and Classes Algorithms Java Syntax and Style Data Types, Variables, and Arithmetic Boolean Expressions and if-else Statements Iterative Statements: while, for, do–while Implementing Classes and Using Objects Strings Class Hierarchies and Interfaces Arrays…

    • 3908 Words
    • 16 Pages
    Powerful Essays
  • Good Essays

    Psy300 Week 8

    • 760 Words
    • 4 Pages

    • Identify how you can encapsulate the data and processes you identified into an object-oriented design.…

    • 760 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    EAS230Syllabus

    • 1748 Words
    • 8 Pages

    C++ programming: editing, compiling, user I/O, variables (ints, doubles, char, strings, booleans), loops, decisions, functions, pointers, arrays, tables, databases, sorting.…

    • 1748 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
  • Satisfactory Essays

    The main objective of this course/subject is to provide students with knowledge and applications of Object-Oriented Programming through the use of the Java programming language.…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    I. A class is a collection of types and methods that all somehow work together.…

    • 939 Words
    • 4 Pages
    Better Essays
  • Powerful Essays

    It 210 Weeks

    • 2760 Words
    • 12 Pages

    Venit, S., & Drake, E. (2011). Prelude to programming: Concepts and design (5th ed.). Boston, MA: Addison-Wesley.…

    • 2760 Words
    • 12 Pages
    Powerful Essays
  • Powerful Essays

    OOP Assigment 1 Sit 1

    • 4788 Words
    • 20 Pages

    Inheritance is when a class (subclass) has the same attributes and methods of another class (parent class); this is done by creating class from an existing class. While a subclass has properties derived for the parent class, it can also have properties of its own.…

    • 4788 Words
    • 20 Pages
    Powerful Essays
  • Good Essays

    Reusability of Code

    • 511 Words
    • 3 Pages

    Object-oriented programming and procedural programming are two programming paradigms that distribute common attributes as well as various differences. A procedure is an additional name for a routing, technique or function. Procedures and objects both use algorithms to develop the system and any logical calculation that is necessary for the program. A function is divided from variables and data compositions. Procedures are intended to run the code in a precise order, while OPP merges data with the function in the function changes the data that is bound to it into a unit identified as an object. Other useful features such as abstraction, encapsulation, and inheritance can be achieved while working with OPP.…

    • 511 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Object-oriented Languages: mainly features as same as the imperative languages because these languages are evolved from imperative languages. The specialty rests on the object-oriented concepts in these languages. Widely used for every kind of software programming and the most commonly used languages are considered to these languages. Java, C#, C++ and Python are few examples.…

    • 1672 Words
    • 7 Pages
    Better Essays
  • Good Essays

    an error check was needed to check the validity of the hours entered. An error check…

    • 510 Words
    • 3 Pages
    Good Essays
  • Good Essays

    A statement that “declares” one or more variable, giving each a name and associating each with a data type.…

    • 1031 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Cheeks

    • 305 Words
    • 2 Pages

    The default grade for class participation is 10%. Participation on the forum is highly recommended. Research has clearly shown that explaining things to others – teaching – helps the person doing the explaining to really learn the material. Students sometimes figure things out just by organizing their thoughts enough to phrase their question. And many many people think they know something, but when they explain, it becomes clear that they haven’t quite got it. Then we can clear things up. It is very important that your focus be on understanding and learning the material, not just on getting a homework grade. If your focus is on this, getting good test grades and completing the homeworks will be much easier for you. Therefore, as a default, participation on the forum counts for 10% of your final grade. However, there are students who prefer to work through the material on their own and who feel they do not benefit from classroom interaction or collaboration on homework. If you prefer this style of learning, you can opt to have class participation count only for 5% of your final grade, or you can opt to have it not count at all. In those cases, the other grades will be increased proportionally. If you want to use one of these options, you must submit this Class Participation Choice Form by midnight, January 27. No alternate grading arrangements can be made after that time.…

    • 305 Words
    • 2 Pages
    Satisfactory Essays