Posts

Showing posts from September, 2020

C# Access Modifiers: What Why How | C#.Net Tutorial - GTech eAcademy

Image
  Watch Full Explanation   on our YouTube channel   https://www.youtube.com/watch?v=4Q8z6qUJN3Y&t=234s Discussion points 1) What is Assembly in .Net? 2) What is Access Modifier? 3) Why do we need to control access to a class or its members? 4) How to implement with Example? 5) Types of Access Modifier & their explanation 6) Interview Questions What is Assembly in .Net? 1) An assembly is a compiled code library (.dll/.exe) used for deployment. Assembly in .Net 2) Assemblies take the form of executable (.EXE) or dynamic link library (.DLL) files and are the building blocks of .NET applications. 3) Assembly is an OS and H/W independent code. What is Access Modifier? A way to control access to a class or its members. OR Access Modifiers are keywords that define the accessibility of a class, data member or member function in a program. Why do we need to control access to a class or its members? Restrict unwanted data manipulation by external programs or classes. OR To create safety

Difference between Procedure Oriented and Object Oriented programming - GTech eAcademy

Image
Watch Full Explanation   on our YouTube channel   https://www.youtube.com/watch?v=-RBlqzGGnF4   Understand the difference between POP & OOP in detail with real life programming example

C# Namespace with real life example - GTech eAcademy

Image
Watch Full Explanation of C# Namespace on our YouTube channel   https://www.youtube.com/watch?v=d3Np2_-Jc14 Discussion points 1) What is namespace in C#? 2) Basic syntax of namespace 3) Understand namespace with examples 4) Naming convention 5) Purpose of using statement 6) Interview Questions What is namespace in c#? Formal Definition A namespace is designed to keep one set of names separate from another. The class names declared in one namespace does not conflict with the same class names declared in another. Informal Definition 1) Collection of classes & interfaces 2) Allow reuse of same class name in different contexts 3) Helps in resolving same class name conflicts Basic syntax of namespace Namesapce: Basic syntax Naming Convention 1) Try to give name as a folder hierarchy 2) Separate namespace components with periods E.g. Microsoft.Office.PowerPoint 3) Use PascalCasing 4) DO NOT use underscores, hyphens or any other nonalphanumeric characters 5) DO NOT use abbreviation