C# basics training (Inheritance)

543 views
477 views

Published on

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

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
543
On SlideShare
0
From Embeds
0
Number of Embeds
16
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

C# basics training (Inheritance)

  1. 1. Coding Horror The scary show for Programmers Based on True stories from the desk of software programmers
  2. 2. Inheritance Episode #1
  3. 3. About the dumbledores Syed Mansoor Ahmed (Project Manager) - Proud Wiproite from last 10 Yrs - Leads AppC Automation team syedmansoor.ahamed@wipro.co m Ankit Kashyap (Analyst Programmer) - Proud Wiproite from last 5.9 Yrs - Works as developer; take care of AppC tools ankit.kashyap@wipro.com
  4. 4. Why We need it?
  5. 5. Open Close Principle “software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification” -from Wikipedia
  6. 6. We all know Inheritance! Yay!! Let’s check it!!! Time for hands-on… Car is a vehicle! So sweet!!
  7. 7. Back to geometry classes!! Rectangle Square Square is a Rectangle
  8. 8. Awww! Cute ducks need software…
  9. 9. And here darkness ends!! *Shameless copy from some site
  10. 10. Under the tree! Like Budhha • Are constructors and destructors inherited ? • How do you prevent a class from being inherited ? • Can you mark method as sealed ? • what do you mean by upcasting and downcasting ?
  11. 11. References… • http://en.wikipedia.org/wiki/Inheritance_%28object-oriented_programming%29 • http://stackoverflow.com/questions/4428725/can-you-explain-liskov- substitution-principle-with-a-good-c-sharp-example • http://en.wikipedia.org/wiki/Liskov_substitution_principle

×