Chapter 01 - An Introduction To Object Oriented Programming...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
An Introduction To Object Oriented Programming Chapter 1 A First Program Using C#
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Microsoft Visual C# 2008, Third Edition 2 Programming Computer program Set of instructions that tells a computer what to do Machine language Expressed as a series of 1s and 0s High-level programming languages Use reasonable terms such as “read,” “write,” or “add”
Background image of page 2
Microsoft Visual C# 2008, Third Edition 3 Programming (continued) High-level programming language (continued) Has its own syntax (rules of the language) Compiler Translates high-level language statements into machine code Programming logic Involves executing the various statements and procedures in the correct order To produce the desired results
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Microsoft Visual C# 2008, Third Edition 4 Programming (continued) Debugging Process of removing all syntax and logical errors from the program
Background image of page 4
Microsoft Visual C# 2008, Third Edition 5 Object-Oriented Programming Procedural program Create and name computer memory locations that can hold values ( variables ) Write a series of steps or operations to manipulate those values Identifier A one-word name used to reference a variable Procedures or methods Logical units that group individual operations used in a computer program
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Microsoft Visual C# 2008, Third Edition 6 Object-Oriented Programming (continued) Object-oriented programming An extension of procedural programming New features include: Objects Similar to objects in the real world Contain their own variables and methods Attributes of an object represent its characteristics
Background image of page 6
Microsoft Visual C# 2008, Third Edition 7 Object-Oriented Programming (continued) New features include (continued): Class A category of objects or a type of object Describes the attributes and methods of every object that is an instance , or example, of that class Encapsulation Technique of packaging an object’s attributes and methods into a cohesive unit Interface Interaction between a method and an object
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Microsoft Visual C# 2008, Third Edition 8 Object-Oriented Programming (continued) New features include (continued): Polymorphism Describes the ability to create methods that act appropriately depending on the context Inheritance Provides the ability to extend a class to create a more specific class
Background image of page 8
Microsoft Visual C# 2008, Third Edition 9 The C# Programming Language C# programming language Developed as an object-oriented and component- oriented language Allows every piece of data to be treated as an object and to employ the principles of object-oriented programming Contains a GUI interface
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Microsoft Visual C# 2008, Third Edition 10 The C# Programming Language (continued) C# programming language (continued) Modeled after the C++ programming language However, eliminates some of the most difficult features to understand in C++ Very similar to Java In C# simple data types are objects
Background image of page 10
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 56

Chapter 01 - An Introduction To Object Oriented Programming...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online