Your SlideShare is downloading. ×
0
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
OOP in C#
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

OOP in C#

3,061

Published on

Event #3 for DevMix Team

Event #3 for DevMix Team

Published in: Education, Technology, Travel
1 Comment
3 Likes
Statistics
Notes
No Downloads
Views
Total Views
3,061
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
189
Comments
1
Likes
3
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  1. Maha EL-basuony<br />OOP<br />
  2. Agenda<br />
  3. Array<br />a data structure that contains several variables of the same type. <br />One Dimensional Array<br />Type [ ] Array_Name = new int [arraySize]; <br />Examples<br />int[] myIntArray = {5, 9, 10, 2, 99}; <br />int[] myIntArray = new int[5]; <br />int[] myIntArray = new int[5] {5, 9, 10, 2, 99}; <br />
  4. Multidimensional Arrays <br /> -A two - dimensional array such as this is declared as follows: <br /> < baseType > [ , ] < name > <br />Examples<br />double[ , ] hillHeight = new double[3,4]; <br />int[ , ] hillHeight = {{1, 2, 3, 4}, {2, 3, 4, 5}, {3, 4, 5, 6}}; <br />
  5. Arrays of Arrays<br />int[][] MyArray; <br />MyArray = {{1, 2, 3}, {1}, {1, 2}}; <br />int[][] MyArray = {new int[] {1, 2, 3}, new int[] {1}, new int[]{1,2}}; <br />MyArray = new int[2][];<br />MyArray[0] = new int[3];<br />MyArray[1] = new int[4]; <br />MyArray= new int[3][] {new int[] {1, 2, 3}, new int[] {1},new int[] {1, 2}}; <br />
  6. String Manipulation<br />
  7. String Builder<br />
  8. Array List<br />
  9. Queue<br />
  10. Functions<br />static Void < functionName > ( )<br />{<br /> ... <br />} <br />static < returnType > < functionName > ( ) <br />{<br /> ...<br /> return < returnValue > <br />} <br />
  11. Value Parameters<br />
  12. Reference Parameters<br />
  13. Out Parameters<br />
  14. Main Function <br />static void Main( )<br />static void Main(string[] args)<br />static int Main()<br />static StringMain(string[] args)<br />
  15. Struct Function <br />
  16. Overloading Functions <br /> create multiple functions with the same name, but each <br />working with different parameter types<br />
  17. Generic<br />
  18. Delegates <br />A delegate is a type that enables<br /> you to store references to functions.<br />
  19. try . . . catch . . . finally <br />try <br /> { <br /> //the code that might has exception <br /> } <br /> catch <br /> { <br /> //exception handling block <br /> }<br /> finally<br /> {<br /> //this block is executed either there <br /> is exceptions or not<br /> } <br />
  20. Classes & Objects<br />
  21. Constructors <br />
  22. This<br />
  23. Access Modifier<br />-Public Members are accessible from any code.<br />-Private Members are accessible only from code that is part of the class (the default if no keyword is used). <br />-Protected Members are accessible only from code that is part of either the class or a derived class.<br />-Internal Members are accessible only from code within the project (assembly) where they are defined. <br />-Protected Internal These are only accessible from code - derived classes within the project (more accurately, the assembly).<br />
  24. Class Definition<br />
  25. Encapsulation<br />
  26. Inheritance<br />is -a<br />
  27. has -a<br />
  28. tire is a car<br />car has a tire<br />has -a<br />
  29. Interface<br />-like a class, but has no implementation.<br />-Can be Internal or Public<br />
  30. Polymorphism<br />
  31. Future Sessions<br />
  32. Q & A<br />Thanks<br />

×