
Learning to Program the Object-oriented Way with C#
Springer (Publisher)
Published on 26. July 2002
Book
Paperback/Softback
XIV, 626 pages
978-1-85233-602-8 (ISBN)
Description
This book guides the student through the process of learning to programme with C# using object orientation.
More details
Edition
Softcover reprint of the original 1st ed. 2002
Language
English
Place of publication
London
United Kingdom
Target group
Professional and scholarly
Professional/practitioner
Illustrations
263 s/w Abbildungen
XIV, 626 p. 263 illus.
Dimensions
Height: 244 mm
Width: 170 mm
Thickness: 35 mm
Weight
1094 gr
ISBN-13
978-1-85233-602-8 (9781852336028)
DOI
10.1007/978-1-4471-0115-4
Schweitzer Classification
Other editions
Additional editions

Vinny Cahill | Donal Lafferty
Learning to Program the Object-oriented Way with C#
E-Book
12/2012
Springer
€53.49
Available for download
Content
1 Objects and Classes.- Introducing Object-oriented Programming.- Writing a C# Class.- Writing a Program that Uses Class Rectangle.- Summary.- Exercises.- 2 Computers, Programming Languages, and C#.- The Components of a Typical Computer.- Programming Languages.- Operating Systems and Portability.- C#.- Developing programs with VisualStudio.NET.- Making Changes to a Class.- Summary.- 3 Variables, Types, and Assignment.- Storing Information -Variables.- Describing Information -Types.- Working with Real Numbers -Type float.- Working with Real Numbers -Type decimal.- Conversions Between Numeric Types.- Changing the Value of a Variable -Assignment.- All About Nothing -null.- Calculating New Values -Expressions.- Class string.- Initializing New Objects -Constructors.- Giving Names to Values -Constants.- Case Study: The Traveling Salesperson.- Summary.- Exercises.- 4 Making Decisions - Selection in C#.- Describing Conditions -Type bool.- Comparing Numeric Values.- Comparing bool Values.- Comparing Objects.- Comparing Object References.- Nested if Statements.- Using if to Select One of Many Alternative Courses of Action.- Defensive Programming.- Using an if Statement Without else.- More About & and | |.- The C# switch Statement.- Summary.- Exercises.- 5 Doing Things Repeatedly - Iteration in C#.- Repeating a Sequence of Statements -The while Statement.- Combining Iteration and Selection.- Generating Functions.- Repeating a Sequence of Statements One or More Times -do.- Case Study: The Traveling Salesperson Revisited.- Summary.- Exercises.- 6 More About Methods.- Referring to the Current Object.- Methods Without Values -void.- Passing Parameters to Methods.- Class Variables and Methods.- The Scope Rules of C#.- Overloading Methods.- Object Deletion and Destructors.- CaseStudy: Complex Numbers.- Summary.- Exercises.- 7 Abstraction and Encapsulation.- Abstraction.- Encapsulation.- Access Modifiers.- Properties.- Defining Operators for Objects.- Case Study: Complex Numbers Revisited.- Summary.- Exercises.- 8 More About Types and Values.- Value Types vs. Reference Types.- Defining Value Types -structs.- Passing Parameters by Reference.- Case Study: Intersecting Line Segments.- Summary.- Exercises.- 9 Characters, Strings and Things.- Working with Characters -Type char.- All About Strings.- Class StringBuilder.- Case Study: Roman Numerals.- Summary.- Exercises.- 10 Managing Collections of Data -Arrays in C#.- Arrays -The Basics.- The for Loop.- The Autoincrement and Autodecrement Operators.- Array Overflow.- The foreach Loop.- Managing Tables -Two-dimensional Arrays.- Indexers -Accessing Arbitrary Objects by Index.- Command Line Arguments.- Case Study: Managing a Lecture Timetable.- Summary.- Exercises.- 11 Inheritance.- Two Key Relationships: "Has-A" and "Is-A".- Demonstrating "Is-A" and "Has-A".- Problems with Implementing "Is-A" Relationships.- Introducing Inheritance.- Effects of Access Modifiers on Inheritance.- Implications of Inheritance on Type.- Changing Existing Methods in a Derived Class.- Interfaces.- Structs, Inheritance and Boxing.- Case Study.- Summary.- Exercises.- 12 Error Handling.- Understanding Stacks.- Dealing with Errors.- Throwing Exceptions.- C# Defined Exceptions.- Case Study.- Summary.- Exercises.- 13 GUI Development.- GUI Design.- Understanding Events.- Operating the GUI.- Case Study.- Summary.- Exercises.- 14 Case Study-Putting It All Together.- A Library Database Management System.- Identifying the Classes.- The Classes in Detail.- User Interface: Designing Our GUI.- Summary.- Exercises.- AIntroducing the Internet and the World Wide Web.- B Case Study Source Code.