Pro C# 7 With. Net and. Net core Eighth Edition Andrew Troelsen Philip Japikse Pro C# 7


Part III: Object-Oriented Programming with C#



Download 1,13 Mb.
Pdf ko'rish
bet15/21
Sana29.03.2022
Hajmi1,13 Mb.
#516568
1   ...   11   12   13   14   15   16   17   18   ...   21
Bog'liq
Andrew Troelsen-1-62


Part III: Object-Oriented Programming with C#
In this part, you will come to understand the core constructs of the C# language, including the details of 
object-oriented programming. This part will also examine how to process runtime exceptions and will dive 
into the details of working with strongly typed interfaces.



IntroduCtIon
lix
Chapter 
5
: Understanding Encapsulation
This chapter begins your examination of object-oriented programming (OOP) using the C# programming 
language. After you are introduced to the pillars of OOP (encapsulation, inheritance, and polymorphism), 
the remainder of this chapter will show you how to build robust class types using constructors, properties
static members, constants, and read-only fields. You will wrap up with an examination of partial type 
definitions, object initialization syntax, and automatic properties.
Chapter 
6
: Understanding Inheritance and Polymorphism
Here, you will examine the remaining pillars of OOP (inheritance and polymorphism), which allow you to 
build families of related class types. As you do this, you will examine the role of virtual methods, abstract 
methods (and abstract base classes), and the nature of the polymorphic interface. Then you will explore 
pattern matching, new in C# 7. Last but not least, this chapter will explain the role of the supreme base class 
of the .NET platform, 
System.Object
.
Chapter 
7
: Understanding Structured Exception Handling
The point of this chapter is to discuss how to handle runtime anomalies in your codebase through the use 
of structured exception handling. Not only will you learn about the C# keywords that allow you to handle 
such problems (
try

catch

throw

when
, and 
finally
), but you will also come to understand the distinction 
between application-level and system-level exceptions. In addition, this chapter will examine various tools 
within Visual Studio that allow you to debug the exceptions that escape your notice.
Chapter 
8
: Working with Interfaces
The material in this chapter builds upon your understanding of object-based development by covering the 
topic of interface-based programming. Here, you will learn how to define classes and structures that support 
multiple behaviors, how to discover these behaviors at runtime, and how to selectively hide particular 
behaviors using explicit interface implementation. In addition to creating a number of custom interfaces, 
you will also learn how to implement standard interfaces found within the .NET platform. You will use these 
to build objects that can be sorted, copied, enumerated, and compared.
Download 1,13 Mb.

Do'stlaringiz bilan baham:
1   ...   11   12   13   14   15   16   17   18   ...   21




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish