OOPs fundamentals session for freshers in my office (Aug 5, 13)

453 views
371 views

Published on

OOPs session covering some of the fundamentals of Object Oriented Programming..

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
453
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

OOPs fundamentals session for freshers in my office (Aug 5, 13)

  1. 1. Ashoka R K T @ashoka_rkt Get this session’s stuff at http://c-smil.es/oopstalk OOPs codeSmiles.comblog:
  2. 2. What are we going to see? • Object oriented thinking • Object oriented programming
  3. 3. Object Oriented thinking • What comes to your mind hearing the word “Object”? • Why do we need software? – To manage things(objects) • What is present in a software? – Objects are present in Software
  4. 4. What are we going to see in OOP • Classes • Objects • Properties and Fields • Methods • Interfaces • And the variations of the above, but these are the base
  5. 5. Classes • What is “Class” • Class means classification of objects • ..that’s it • We use classes to classify objects
  6. 6. Creating objects of a Class • Employee emp = new Employee();
  7. 7. Objects • We already discussed, so.. what are objects? • We create objects using a class’ specification
  8. 8. Properties & Fields
  9. 9. Methods
  10. 10. Interfaces • What is “Interface” • Keep in mind Hardware Interface, User Interface, etc
  11. 11. Constructors & Destructors
  12. 12. Access Modifiers • Public - everywhere • Private – same class • Protected – accessible from derived class • Internal - same assembly • protected internal – different assembly but should inherit – rarely used
  13. 13. Static Members • Non Instance specific
  14. 14. Inheritance
  15. 15. Generics
  16. 16. Delegates public delegate void DelegateMethod(string s); Calling code: public static void Method1(string s1) { … } … DelegateMethod del = Method1; del(“Hi”);
  17. 17. Thank You • Get this session’s stuff at http://c-smil.es/oopstalk – Slides & code samples blog: @ashoka_rkt codeSmiles.com

×