Wednesday , December 11 2019

Tag Archives: C#

C# – Encapsulation

Encapsulation: Encapsulation in a nutshell is “hiding the data“. It restricts direct access to data of an object. Encapsulation can be applied to data members or methods. It is done by putting the “private” keyword before the class property name or method name. Private – A member is private and accessible …

Read More »

Introduction to C programming

c programming

  Introduction to C programming This is the start of c programming tutorials. In this series we will learn How to program in C language in Urdu and Hindi. Some key points of history of C language: The C programming language is a structure oriented programming language, developed at Bell Laboratories in 1972 …

Read More »

C# – Intro to Object Oriented Programming

This is the very first tutorial for Object Oriented Programming in C#. In this video we will learn what are Objects? And what is the theory behind Object Oriented Programming? Object Oriented Programming is a way to generalize objects into their definitions which can later be used to create objects/instance …

Read More »

C# – Learning some .NET Methods (Maths, Split)

In this lesson we will learn more about Methods. We will learn how to use some maths methods like Sin, Cos, Tan, Round, Pow and Sqrt. We will also learn how to split string in C#.Topics covered: Topics covered: Maths functions: Sin(), Cos(), Tan(), Round(), Pow(), Sqrt() string Split() static void …

Read More »

C# 09 – Learning methods

In this tutorial we will learn What are methods? and How to create a method in C# programming language? Methods Methods are a way of beautifying your coding style. It allows you to write code once, and use it again and again. It can reduce your 18 lines of execution …

Read More »

C# – More on arrays, loops and conditionals (Part 2)

  This is the 2nd part of: More about arrays, loops and conditionals (Part 1) Part 2: Code for 3 x 3 matrix application: Put this below static void main() int[,] matrix = new int[3, 3] { {1,3,5}, {6,7,8}, {9,6,3} }; for (int i = 0; i < matrix.GetLength(0); i++) { for …

Read More »

C# – More on arrays, loops and conditionals (Part 1)

In this video we will revise what we have learned in our past videos. Making variables Taking inputs Loops Arrays Conditionals and switch cases We will use these to achieve 2 tasks: Calculator 3 x 3 matrix using 2D arrays. I have broken the video in 2 parts to not …

Read More »