0% found this document useful (0 votes)
27 views7 pages

Programming C# 2.0, 3.0, 4.0: Muhammed Ali Sakhi Microsoft Certified Trainer

Uploaded by

alisakhi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views7 pages

Programming C# 2.0, 3.0, 4.0: Muhammed Ali Sakhi Microsoft Certified Trainer

Uploaded by

alisakhi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Programming C# 2.0, 3.0, 4.

Muhammed Ali Sakhi


Microsoft Certified Trainer

© PakDev.net
Agenda
Interfaces
Abstract Classes

© PakDev.net
Interfaces
Use the interface keyword

No access specifiers (public, private)

No method body

Interfaces do not have constructors

© PakDev.net
Implementing Interfaces
A class can implement zero or more interfaces

An interface can extend zero or more interfaces

A class must implement all inherited interface


methods

© PakDev.net
Abstract Classes
Use the abstract keyword
Instances cannot be created
Must be inherited
Use to provide partial implementation
Can extend other classes
Can declare non public member
Can declare abstract methods
Abstract methods can’t contain a method body

© PakDev.net
Interface

Demo

© PakDev.net
Thank you
PakDev.net

© PakDev.net

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy