c# basics training (interfaces)

8
Coding Horror The scary show for Programmers Based on True stories from the desk of software programmers

Upload: ankit-kashyap

Post on 24-May-2015

289 views

Category:

Technology


1 download

DESCRIPTION

Our C# basics training slides, which we used in out recent training batch

TRANSCRIPT

Page 1: C# basics training (Interfaces)

Coding HorrorThe scary show for Programmers

Based on True stories from the desk of software

programmers

Page 2: C# basics training (Interfaces)

InterfacesEpisode #2

Page 3: C# basics training (Interfaces)

And We are back!!

Syed Mansoor Ahmed

(Project Manager)- Proud Wiproite from

last 10 Yrs- Leads AppC

Automation team

[email protected]

Ankit Kashyap(Analyst Programmer)

- Proud Wiproite from last 5.9 Yrs

- Works as developer; take care of AppC tools

[email protected]

Page 4: C# basics training (Interfaces)

Why We need it?

Polymorphism

Alternate way

for multiple

inheritance

One ability = one interface

loosely coupled systems

Page 5: C# basics training (Interfaces)

Show me a quick demo!!!

Page 6: C# basics training (Interfaces)

Quick checks??

• How to declare public and private methods in an interface definition??

• How they are different from Abstract classes?

• How we achieve code reuse through Interfaces?

Page 7: C# basics training (Interfaces)

-Whats your number? Huh?-How to ring the phone?-How to send voice data?

Cellphone – Seriously I can’t live without it!

Page 8: C# basics training (Interfaces)

Software Specification

• Mobile Exchange should be able to intimate user about calls (Ringtone!)

Req 1

• Mobile Exchange should be able to send the voice across network

Req 2