Posts

Showing posts with the label c# coding challenge

CSharp C# Method Overloading with Practical Example and Coding Challenge / Coding Excercise

Image
I've linked my YouTube video below, where I explain method overloading in C# with a practical example and a fun coding challenge at the end. Below the video, you'll find the actual code featured in the tutorial. Try solving the coding challenge yourself before checking out the solution provided at the end of this blog - it’s a fantastic way to test your understanding and sharpen your skills! Happy coding! 😊 Actual code featured in the tutorial using System; namespace MethodOverLoading { internal class Program { static void Main(string[] args) { Log log = new Log(); log.DisplayLog("Welcome to this program."); log.DisplayLog("You have successfully created the file on ", DateTime.Now); log.DisplayLog("Requires user authentication", 401); } } public class Log { public void DisplayLog(string message) { Console.WriteLine(message...

CSharp C# Method Overriding in with a Practical Example and Coding Challenge

Image
I've linked my YouTube video below, where I explain method overriding in C# with a practical example and a fun coding challenge at the end. Below the video, you'll find the actual code featured in the tutorial. I have used virtual method in the example so i have used abstract class and method for the coding challenge solution. You can solve using both ways. Try solving the coding challenge yourself before checking out the solution provided at the end of this blog - it’s a fantastic way to test your understanding and sharpen your skills! Happy coding! 😊 Actual code featured in the youtube tutorial above using System; namespace Method_Overriding { internal class Program { static void Main(string[] args) { Engineer engineer = new Engineer(); engineer.Work(); FrontEndEngineer frontEnd = new FrontEndEngineer(); frontEnd.Work(); BackEndEngineer backEnd = new BackEndEngineer(); b...