C# Corner

Resources  
  • Protecting IL Code from unauthorised DisassemblingApr 09, 2001. Microsoft .NET proved a mechanism where the code written in VB.NET, C# or any CLS compliant languages to generate MSIL (Microsoft Intermediate Language)code which targets the CLR and executes. This is an excellent mechanism to abstract the high level code from the underlying hardware.
  • Multiple Inheritance in C#Aug 29, 2001. Can you inherit from multiple classes in C#? Simply put, this cannot be done. However there are ways around it. From a design perspective you must ask yourself, will a Class fully represent an object?
  • Abstract Classes And MethodsOct 08, 2001. This is a detailed analysis of Abstract classes and methods in C# with some concrete examples.
  • Encapsulation in C#Oct 12, 2001. In Object Oriented programming Encapsulation is the first pace. Encapsulation is the procedure of covering up of data and functions into a single unit (called class).
  • Understanding Properties in C#Oct 15, 2001. In C#, properties are nothing but natural extension of data fields. They are usually known as 'smart fields' in C# community.
  • Implementing Stacks in C#Nov 06, 2001. With the help of C# we can also implement ADT (Abstract Data Types) with little effort. An example of ADT is a simple stack of integers.
  • Abstract Factory Patterns in C#Dec 10, 2001. The ABSTRACT FACTORY PATTERN comes under the classification of Creational Patterns. The Abstract Factory provides an interface to create and return one of several families of related objects.
  • Composite Patterns in C#Jan 23, 2002. A Composite is a tree structure consisting of individual objects mixed with compositions of objects, that is, objects that have other objects as their children.
  • Creational Pattern - Abstract FactoryFeb 11, 2002. An abstract factory provides an interface for creating families of related objects without specifying their concrete classes. Sometimes one wants to construct an instance of one of a suite of classes, deciding between the classes at the time of instantiation.
  • Implementing Inheritance in C#Sep 05, 2002. Inheritance is one of the most important characteristic of OOP. In this article, I will explain how to implement the inheritance in C# by explaining through an example.
  • Abstract Factory - Creational Design PatternJan 03, 2003. Abstract Factory simplifies the creation of different families of related or dependent objects. It provides interfaces for this purpose and does not specify the concrete classes.
  • OOPS Concepts and .NET Part 2: Inheritance, Abstraction, & PolymorphismJun 22, 2005. The following article is the second of a three-part article series that presents definitions and samples for different Object-Oriented Programming (OOP) concepts and its implementation in .NET. The first part examined the concepts of classes, objects, and structures. This part examines the concepts of inheritance, abstraction, and polymorphism. The third and last part will examine the concepts of interface, multiple interface inheritance, collections, and overloading.
  • Design Patterns in C#Nov 01, 2005. To define design patterns in simple words they are "popular solutions for common design problems". They are very helpful in designing architecture and they also increase ease of communication among the developers.
  • Introduction to Model View Control (MVC) Pattern using C#Dec 12, 2005. The benefits of using the Model-View-Control (MVC) pattern in our development projects is that we can completely decouple our business and presentation application layers. Furthermore, we will have a completely independent object to control the presentation layer.
  • Abstract Factory Design Pattern in ADO.NET 2.0Feb 17, 2006. This article will discuss the Abstract Factory Design Pattern and its real-world applications in .Net Framework 2.0.
  • Differentiate Hiding and OverridingFeb 27, 2006. As most of you know hiding and overriding are two main features based upon inheritance, which is one of the pillars of the OOP. Using these we can redefine a member of the base class in a derived class. But what are the differences. Let me clear this with some simple examples.
  • Simple Factory Pattern Side by Side with Abstract PatternMar 02, 2006. This article will discuss the Simple Factory Pattern and how to use it with Abstract Factory Patter discussed in the previous article.
  • C# Interface Based DevelopmentMar 06, 2006. When trying to build maintainable, reusable, and flexible C# code, the object oriented nature of C# only gets us 50% of the way there. Programming to interfaces can provide us with the last 50%. Interfaced-based design provides loose coupling, true component-based programming, easier maintainability and it makes code reuse much more accessible because implementation is separated from the interface.
  • The GOF Abstract Factory Design Pattern In C#Aug 04, 2006. This article covers the basics of the GOF Abstract Factory design pattern by looking at building Model T automobiles.
  • The .NET 2.0 Framework Provider PatternAug 11, 2006. The Provider Model Design Pattern was first introduced with the .NET 1.1 framework, specifically in the ASP.NET starter kits and was formalized in ASP.NET Whidbey as a membership management provider API (Application Program Interface). It's primary purpose is to separate the definition for an API from the implementation. This keeps the API flexible by enabling the core functionality to be flexible and easily changed.
  • MineSweeperJun 05, 2007. Minesweeper is a single-player computer game. The object of the game is to clear an abstract minefield without detonating a mine.
  • Object Instantiation in C#. Part III Abstract FactoriesJun 25, 2007. There are many ways to approach object instantiation. In this article we’ll cover a few of the patterns used to instantiate objects.
  • Abstract Base Class PolymorphismAug 30, 2007. Refactoring the program code from my Polymorphism, Up-casting and Down-casting article to use an abstract base class.
  • Creating Extensible and Abstract LayerFeb 28, 2008. This article explains you about the abstraction and extensibility which is an important factor in modern day frameworks.
  • What's really differs an Interface from a class?: Part IIApr 28, 2008. In this article, I will respond to the second question posed in the previous one. Part I-What's really differs an Interface from a class?
  • What really it differs an Interface from a class: Part IApr 28, 2008. This article tells you about the basic difference between an interface and a class.
  • What really it differs an Interface from a class: Part IIIApr 29, 2008. As a response to the third question asked in the first article Part I-What really it differs an Interface from a class? I can say that also interfaces play others important roles. They can serve as a powerful tool to explore objects
  • Software Testing TechniquesJul 16, 2008. This article tells us that Testing should systematically uncover different classes of errors in a minimum amount of time and with a minimum amount of effort. Because of the fallibility of its human designers and its own abstract, complex nature, software development must be accompanied by quality assurance activities.
  • How to Define and Configure a Grid Control Within a WPF Aplication Using XAML: Part IAug 13, 2008. In this article, I will try to make a representation of the Grid object witch is directly derived from the Panel abstract class and we can say that is a flexible area that contains rows and columns, it plays a role of container in a given WPF window.
  • Design Pattern Interview Question Part 1Nov 04, 2008. This article talks about factory, abstract factory, prototype pattern from interview point of view.
  • Coding Better: Programming From the Outside In for Fluent Interfaces. Part IV - A Real World ApplicationFeb 09, 2009. In this article we'll look at building a fluent interface to abstract parameter assertions which gives us readable code that closely models spoken/written language. This will make code consuming our API contain less code debt and reduce the total cost of maintenance.
  • Abstract Class, Interface and relation to Method Overriding and Method Hiding in C#Feb 17, 2009. In my this article I present a way to easily understand Abstract Types, Interfaces and their difference with Overriding and Hiding.
  • Abstract Class and Abstract MethodsMay 26, 2009. In this article I will explain abstract class and abstract methods.
  • Abstract Class in C#Mar 09, 2010. An Abstract class is an incomplete class or special class we can't instantiate.
  • What is an Interface?Mar 09, 2010. Interface is a reference type it contains only abstract members.
  • Abstract Factory PatternSep 21, 2010. In this walkthrough I'll try to explain GOF (Gang of Four) Abstract Design pattern. This article is about managing multiple connection strings of different data providers (SQL, Oracle, OleDB etc.).
  • Abstraction in C#Oct 13, 2010. The word abstract means a concept or an idea not associated with any specific instance.
  • Factory Method PatternOct 26, 2010. Here in this article i'll try to explain Factory Method Pattern with an real world example
  • Hosting WCF Service inside IISNov 12, 2010. Windows Communication Foundation(WCF) takes many existing communication technologies, such as Web Services, Windows Remoting, Microsoft Message Queuing, and abstracts them into a single technology. In most cases, this simplifies the way you communicate with other applications.
  • Abstract Classes in C#Apr 22, 2011. When a method is declared as abstract it is mandatory for the child class to implement it, without which it can't use other members and methods of the parent class.
  • Interfaces in .NETApr 24, 2011. In the article before this I explained Abstract Classes.
  • Object Creation and InstantiationJul 22, 2011. In this article I am trying an alternative approach for Multiple Inheritance.
  • Abstract Factory PatternDec 02, 2011. In this article I would like to explain the Abstract Factory pattern. This pattern is essential for learning the Factory Method and Bridge patterns.
  • Working With an Abstract Class in JSPDec 14, 2011. Java provides a special type of class called an abstract class which helps us to organize our classes based on common methods. An abstract class lets you put the common method names in one abstract class without having to write the actual implementation code.
  • Using AJAX Graphs in ASP.NETDec 20, 2011. A Graph is an abstract representation of a set of objects where some pairs of the objects are connected by links.
  • Abstract Class in JAVAJan 17, 2012. In this article you will learn about abstract classes in JAVA.
  • Abstract Class and Abstract Method in C#May 21, 2012. In this article I have described abstraction in the C# language and a way to achieve dynamic polymorphism with the help of abstract method in the C# language.
  • Working With Dictionary Class in JavaMay 21, 2012. In this article we are going to describe the Dictionary class in java. The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to values.
  • Difference Between Abstract Class and an InterfaceMay 30, 2012. In this article I have explained the difference between an Abstract Class and an Interface with some examples and some information about an Interface.
  • Learn Design Pattern - Abstract Factory PatternSep 14, 2012. In this article we will create an ASP.Net application using Abstract Factory Pattern.
  • Learn Design Pattern - Flyweight PatternOct 03, 2012. Today we will understand what Flyweight Pattern is and how to implement it in an ASP.Net application.
  • Creational Pattern - Builder in VB.NETNov 08, 2012. The Builder pattern allows a client object to construct a complex object by specifying only its type and content. The client is shielded from the details of the object’s construction.
  • Creational Pattern - Abstract Factory in VB.NETNov 08, 2012. An abstract factory provides an interface for creating families of related objects without specifying their concrete classes. Sometimes one wants to construct an instance of one of a suite of classes, deciding between the classes at the time of instantiation.
  • Understanding Properties in VB.NETNov 09, 2012. In VB.NET, properties are nothing but natural extension of data fields. They are usually known as ‘smart fields’ in VB.NET community. We know that data encapsulation and hiding are the two fundamental characteristics of any object oriented programming language.
  • Abstract class and Interface in VB.NETNov 09, 2012. This article defines Abstract class and Interface in VB.NET.
  • Protecting IL Code from Unauthorized Disassembling in VB.NETNov 10, 2012. Microsoft .NET proved a mechanism where the code written in VB.NET, C# or any CLS compliant languages to generate MSIL (Microsoft Intermediate Language)code which targets the CLR and executes. This is an excellent mechanism to abstract the high level code from the underlying hardware.
  • Abstract Factory Pattern in VB.NETNov 10, 2012. The abstract factory pattern comes under the classification of Creational Patterns. The creational patterns deals with the best way to create objects. The Abstract Factory provides an interface to create and return one of several families of related objects.
  • Abstract Classes in VB.NET Nov 10, 2012. This is a detailed analysis of abstract classes and methods in VB.NET with some concrete examples.
  • Using Abstract Class in C#Nov 26, 2012. In this article we learn about abstract classes in C# using a console appication example
  • Abstract Class In C#Jan 06, 2013. In this article we look at what an abstract class is, its method and properties and how to use them.
  • Abstraction in C#Jan 13, 2013. Abstraction is an important feature of any object-oriented programming language.
  • How to Use Abstract Class in PHPFeb 05, 2013. I will describe abstract classes in PHP.
  • Create Abstract Class in PHPFeb 07, 2013. In this article I explain how to create an abstract class and methods in PHP
  • Deference Between Abstract Class and Interface in PHPFeb 26, 2013. In this article I explain the difference between an abstract class and an interface class in PHP.
  • Introduction to the Abstract Windowing Toolkit (AWT)Mar 20, 2013. In this article we describe the Abstract Windowing Toolkit (AWT)
  • Explore Interface Vs Abstract ClassApr 01, 2013. Here I explore an Interface Vs an Abstract Class.
  • Abstract Classes in C#Apr 19, 2013. This article explains Abstract Classes in C#.
  • Few Ways to Prevent Instantiation of ClassMay 09, 2013. Let’s go with very interesting facts about oops. There are few ways Stop Instantiation of class.
  • Using Reflection with C# .NETMay 18, 2013. This article explains discovery of types at runtime using .NET Reflection. This article will also explain late binding that is very related to reflection.
  • Software Requirement StudyMay 23, 2013. A software requirement is an abstract description of services that the system shall provide and the constraints under which the system must operate.
  • Learn Object Oriented Programming Using C#: Part 8May 24, 2013. Dear reader's, this article is the fourth and last pillar of OOP. It's confusing for the beginners of OOP. So we provide an example in very simple words.
  • C# .NET Delegates and EventsJun 11, 2013. In this article, you will learn how to create and manipulate delegate types as well as C# events which streamline the process of working with delegate types.
  • Abstract Factory Design PatternJun 24, 2013. Abstract Factory Pattern is a software creational design pattern that provides a way to encapsulate a group of individual factories that have a common theme without specifying the concrete classes.
  • How to Implement Custom Role Provider in VS2008 and VS2010Jul 04, 2013.
  • C# and ASP.Net Interview Question and AnswersJul 26, 2013. In this article I will demonstrate C# and ASP.NET Interview Question and Answers.
  • Factory Pattern vs Factory Method Pattern vs Abstract Factory PatternAug 21, 2013. This article describes the Factory Pattern, Factory Method Pattern and Abstract Factory and the differences among them.
  • Abstract Factory Design PatternSep 22, 2013. Here I will try to explain the Abstract factory pattern as it is at one level above then the Factory pattern.
  • Design Patterns in .NetOct 01, 2013. Design patterns provide general solutions or flexible way to solve common design problems. This article provides a simple introduction regarding learning and understanding design patterns.
  • Improve Performance and Scalability of ADO.NET CodeOct 22, 2013. This article expects that you have enough hands on experience in ADO.NET and good understanding of ADO.NET architecture.
  • Decorator Pattern Using C#Dec 21, 2013. This article is explaining the Decorator Pattern.
  • Create Abstract View Using Backbone.jsJan 24, 2014. In this article I will create an abstract View with backbone.js. In this tutorial we will create two views working on the Mouse Hover and Mouse click events.
  • Abstract Classes in C#Apr 05, 2014. This article exlains one of the most important concepts of object oriented languages, abstract classes (in reference to C#).
  • Abstract Classes in C#Apr 06, 2014. This article will explain one of the most important concepts of object oriented languages (for C#), abstract classes.
  • Predicate Combinators in LINQApr 28, 2014. In this article you will learn how to use Predicate Combinators in LINQ.
  • What an Abstract Class is and Where It Should be Used in a Practical ScenarioMay 09, 2014. This article explains what an Abstract class is and where it should be used in a practical scenario.
  • Diving Into OOP (Day 4) : Polymorphism and Inheritance (All About Abstract Classes in C#)Jun 02, 2014. In this article of the series "Diving Into OOP", we’ll discuss the hottest and most exciting topic of OOP in C#, Abstract Classes.
  • Abstract Class & Interface: Two Villains of Every Interview - Part 1 Sep 09, 2014. This article is the first part of the series "Abstract Class & Interface: Two Villains of Every Interview" and explains the important key points of Abstract Class.
  • Abstract Class & Interface: Two Villains of Every Interview - Part 2Sep 23, 2014. This article explains the important key points of interfaces.
  • Interview Questions For 3 Year .NET ProfessionalsOct 28, 2014. This article describes the experience and provides the questions and answers from the interview and a few other points.
  • Anti-Reverse Engineering (Assembly Obfuscation)Nov 10, 2014. The modus operandi of this paper is to demystify the .NET assembly obfuscation as a way to deter Reverse Engineering.
  • Use an Abstract Class in C#Nov 27, 2014. In this article, I will explain the abstract class concept.
  • Abstract Method From an Abstract Class ConstructorNov 28, 2014. In this article you will learn how to call an abstract method from an abstract class constructor.
  • Constructors In Abstract ClassesNov 28, 2014. In this article you will learn about constructors in abstract classes.
  • Abstract Classes In DepthJan 06, 2015. In this article you will learn about abstract classes.
  • Abstract Classes in C#Jan 10, 2015. In this article, we will learn about the basics of an abstract class.
  • Difference Between Abstract Classes and InterfacesJan 28, 2015. In this article we will learn about the differences between abstract classes and interfaces.
  • Abstract Class Versus InterfaceFeb 26, 2015. This article describes abstract classes and interfaces and compares them.
  • Handling Multiple Main() Methods in C#Mar 20, 2015. This article explains how to make and execute multiple Main() methods in the C# programming.
  • Abstract Class in C#May 16, 2015. In this article we will learn about the Abstract Class in C#.
  • Abstract Methods in C#May 16, 2015. This article explains the very basics of abstract methods for beginners.

About abstract

Abstract is keyword which is used in java programming language to achieved the Abstraction which is more powerful concept in java programming language. If we wants to create the Abstract class then declare the class with Abstract keyword. It can be applied to a class and methods. An abstract class cannot be directly instantiated. It must be placed before the variable type or the method return type. It is recommended to place it after the access modifier and after the static keyword. A non-abstract class is a concrete class. An Abstract class cannot be final. Abstract classes may or may not contain abstract methods which have no body. But if a class have at least one abstract method, then the class must be declared abstract. To use an Abstract class you have to inherit it from another class, provide implementations to the abstract methods in it.

SPONSORED BY

C# Corner Chandigarh DevCon16
Chandigarh DevCon16 is a one-day Developer Conference where programmers, technologists, authors, and members meet, demonstrate, plan, and hang out.
Download Free eBooks