Posts

Showing posts from December, 2023

day 30

Image
studied the second section of material for the session is Methods. Method is a block of code that performs a specific task or operation. Methods are used to encapsulate reusable pieces of code and promote code organization, modularity, and reusability. They allow you to break down your code into smaller, manageable units, making it easier to read, understand, and maintain.

day 29

Image
 today I continued study methods  What is methods types ?  1-Void  Returns void . Means has no value to return;  Typically we use it while printing or implement algorithms that doesn’t return any value.   2-Return Datatype Returns value . You can reuse the method in some operations , You can print the value of the method or assign it to a variable. 

day 28

 learned some basics about C# features Some C# features:  - Arrays and Slicing  - foreach  - Jumb Statements  - && and &  - %  - Discard  - null and null coalescing  - pattern matching [ is ]  - Guess The Number Game  - switch expression  - Say hi to methods  - End of C# Basic Level

day 27

Image
Today studied  Reference Types  •Definition: Variables store references to memory locations.  • Examples: class, interface, delegate  • Memory Allocation: Hea • Stored Value: Memory address (reference).  • Memory Efficiency: Potentially larger, slower access.  • Assignment Behavior: Copying references, not the actual data.  • The [ new ] keyword resaves a place

day 26

 Today I studied fist part of the session’s martial. Value Types • What are Value Types? • Definition: Variables directly store their values. • Examples: int, float, char, struct. • Memory Allocation: Stack. • Characteristics • Stored Value: Actual data is stored. • Memory Efficiency: Faster access, but limited size. • Assignment Behavior: Copying value

day 25

Image
 today I studied  Assemblies, Assemblies is the basic unit of deployment in .NET Core. In summary, the combination of a common intermediate language (CIL), the Common Language Runtime (CLR), and cross-platform libraries allows C# code to be written once and run on multiple platforms, including both Windows and Mac. The runtime environment takes care of the platform-specific details, making cross-platform development more accessible for C# developers. 

day 24

Image
I decided to watch YouTube videos in order to improve my problem solving because it is very important in the field of programming and it is very important in our the field of programming and it is considered the most important feature that every programmer should have in order to be thankful so I decided to watch a video every day and answer problems and try to study them on my own alongside the course that I am already taking. today was the first day and I watched video and I solved two problems but only a little time of course we will increase them in the coming days.

day 23

Image
  today was our last day with this programming language is C# and we worked on a project on it and learned many things that  were true of me such as how to write code correctly and use everything we learned from the first session.

day 22

Image
 today I was reviewing all last sessions and YouTube videos that I took and watched . because, I felt that I needed to be more proficient in the programming language that I am learning, so I watched a revision video on YouTube so that I could start doing projects related to the language.     

day 21

Image
 today learned some new and important terms for me • Casting → Involves converting a variable from one type to another when the types are compatible. • Boxing → Is the process of converting a value type to a reference type Value vs. Reference

day 20

Image
    today’s was very useful we talked about .NET and .NET features to us as programmers. we talk about many topic as .NET versions that every year at November they publish new version with mor pros to us. this session was so hard to me because my instructors give us many information this day so I will do revision on it   

day 19

Image
 today I learned switch case 

day 18

 today I practice on the methods by solved some problems Some methods I do  Write a method to calculate the average and sum of Given N numbers.  Write a method to calculate the factorial of a Given number  Write a method to take an array and calculate the sum of its elements and average .

day 17

Image
 today studied  Methods ( Overloading ) it is Make some methods of same name but different in signature  Static int sum ( int x , int y)  {  return x + y;  }  Static double sum (double x , double y)  {  return x + y;  } -I can make overloading with 3 steps :  1– change the number of parameters عدد   2– change the type of parameters أنواع   3– change the order of parameter ترتيب

day 16

 I did practice on Methods ( Overloading) Made method to calculate the sum of its parameters . Made method to calculate the area .

day 15

Image
 partial methods 

day 14

Image
 string & string builder

day 13

Image
 today’s video talked about reflection in C#

day 12

 today’s video talked about code debugging in Microsoft visual studio it was very useful to me.

day 11

Image
  learned about delegates

day 10

Image
  today learned how to use abstract classes.