Learning to program the object-oriented way with C♯
General Material Designation
[Book]
First Statement of Responsibility
Vinny Cahill and Donal Lafferty.
.PUBLICATION, DISTRIBUTION, ETC
Place of Publication, Distribution, etc.
London
Name of Publisher, Distributor, etc.
Springer
Date of Publication, Distribution, etc.
2002
PHYSICAL DESCRIPTION
Specific Material Designation and Extent of Item
XIV, 626 Seiten : Illustrationen, Diagramme ; 25 cm
CONTENTS NOTE
Text of Note
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.- Case Study: 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.- A Introducing the Internet and the World Wide Web.- B Case Study Source Code.