Home Page Icon
Home Page
Table of Contents for
Book 2: Object-Oriented C# Programming
Close
Book 2: Object-Oriented C# Programming
by John Paul Mueller
C# 10.0 All-in-One For Dummies
Cover
Title Page
Copyright
Introduction
Book 1: The Basics of C# Programming
Book 2: Object-Oriented C# Programming
Book 3: Designing for C#
Book 4: A Tour of Visual Studio
Book 5: Windows Development with WPF
Book 6: Web Development with ASP.NET
Index
About the Author
Advertisement Page
Connect with Dummies
End User License Agreement
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Chapter 10: Creating Lists of Items with Enumerations
Next
Next Chapter
Chapter 1: Showing Some Class
Book 2
Object-Oriented C# Programming
Contents at a Glance
Chapter 1: Showing Some Class
A Quick Overview of Object-Oriented Programming
Defining a Class and an Object
Accessing the Members of an Object
Working with Object-Based Code
Discriminating between Objects
Can You Give Me References?
Classes That Contain Classes Are the Happiest Classes in the World
Generating Static in Class Members
Defining const and readonly Data Members
Chapter 2: We Have Our Methods
Defining and Using a Method
Method Examples for Your Files
Having Arguments with Methods
Using the Call-by-Reference Feature
Defining a Method with No Return Value
Returning Multiple Values Using Tuples
Chapter 3: Let Me Say This about this
Passing an Object to a Method
Comparing Static and Instance Methods
Accessing the Current Object
Using Local Functions
Chapter 4: Holding a Class Responsible
Restricting Access to Class Members
Why You Should Worry about Access Control
Defining Class Properties
Using Target Typing for Your Convenience
Dealing with Covariant Return Types
Getting Your Objects Off to a Good Start — Constructors
Using Expression-Bodied Members
Chapter 5: Inheritance: Is That All I Get?
Why You Need Inheritance
Inheriting from a BankAccount Class (a More Complex Example)
IS_A versus HAS_A — I’m So Confused_A
Other Features That Support Inheritance
Chapter 6: Poly-what-ism?
Overloading an Inherited Method
Polymorphism
C# During Its Abstract Period
Sealing a Class
Chapter 7: Interfacing with the Interface
Introducing CAN_BE_USED_AS
Knowing What an Interface Is
Using an Interface
Using the C# Predefined Interface Types
Looking at a Program That CAN_BE_USED_AS an Example
Unifying Class Hierarchies
Hiding Behind an Interface
Inheriting an Interface
Using Interfaces to Manage Change in Object-Oriented Programs
Chapter 8: Delegating Those Important Events
E.T., Phone Home — The Callback Problem
Defining a Delegate
Pass Me the Code, Please — Examples
A More Real-World Example
Shh! Keep It Quiet — Anonymous Methods
Stuff Happens — C# Events
Chapter 9: Can I Use Your Namespace in the Library?
Dividing a Single Program into Multiple Source Files
Working with Global using Statements
Dividing a Single Program into Multiple Assemblies
Putting Your Classes into Class Libraries
Going Beyond Public and Private: More Access Keywords
Putting Classes into Namespaces
Working with Partial Methods
Chapter 10: Improving Productivity with Named and Optional Parameters
Exploring Optional Parameters
Looking at Named Parameters
Using Alternative Methods to Return Values
Dealing with null Parameters
Chapter 11: Interacting with Structures
Comparing Structures to Classes
Creating Structures
Working with Read-only Structures
Working with Reference Structures
Using Structures as Records
Using the New Record Type
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset