





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An excerpt from the third edition of 'c# programming: from problem analysis to program design'. It covers the major features of object-oriented languages, component-based development methods, inheritance, abstract classes, interfaces, polymorphism, generics, static versus dynamic typing, and creating base classes for inheritance. It also explains how to override methods and call the base constructor, as well as the relationship between classes and making stand-alone components.
Typology: Slides
1 / 29
This page cannot be seen from the preview
Don't miss anything!






















C# Programming: From Problem Analysis to Program Design 1
C# Programming: From Problem Analysis to Program Design 3rd Edition
C# Programming: From Problem Analysis to Program Design 2
Chapter Objectives
C# Programming: From Problem Analysis to Program Design 4
Chapter Objectives ( continued )
C# Programming: From Problem Analysis to Program Design 5
Object-Oriented Language
Features
C# Programming: From Problem Analysis to Program Design 7
Component-Based Development
( continued )
C# Programming: From Problem Analysis to Program Design 8
Inheritance
C# Programming: From Problem Analysis to Program Design 10
Inheriting from Other .NET FCL
Classes
Derived class
Figure 11-3 Derived class
C# Programming: From Problem Analysis to Program Design 11
Creating Base Classes for
Inheritance
C# Programming: From Problem Analysis to Program Design 13
Overriding Methods ( continued )
C# Programming: From Problem Analysis to Program Design 14
Calling the Base Constructor
C# Programming: From Problem Analysis to Program Design 16
Relationship
between the Person and Student Classes
Figure 11-5 Inheritance class diagram
C# Programming: From Problem Analysis to Program Design 17
Making Stand-Alone
Components
C# Programming: From Problem Analysis to Program Design 19
Build Instead of Run to Create DLL
Figure 11-7 Attempting to run a class library file
C# Programming: From Problem Analysis to Program Design 20
Add Reference to Base Class
Figure 11-8 Adding a reference to a DLL
One of the first things to do is Add a Reference to the Parent DLL