Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

Showing posts with label OOPS Concepts. Show all posts
Showing posts with label OOPS Concepts. Show all posts

OOPS (Object Oriented Programming) Concepts in C#.NET with Examples

Mar 31, 2015 77 comments
Here I will explain oops concepts in c# with examples or object oriented programming concepts in c#.net with real time examples or oops or object oriented programming in asp.net with example.

Now let’s start learning about OOPS concepts in c#.net with real time examples

OOPS Concepts

Class:

 It is a collection of objects.

Object:

It is a real time entity.
An object can be considered a "thing" that can perform a set of related activities. The set of activities that the object performs defines the object's behavior. For example, the hand can grip something or a Student (object) can give the name or address. In pure OOP terms an object is an instance of a class

C# - Destructor in C# with Example

Sep 29, 2013 4 comments
Introduction:

Here I will explain what is destructor in c# with example, use of destructor in c#.net. Destructor in c# is a special method of a class which will invoke automatically when an instance of the class is destroyed. Destructor is used to write a code that needs to be executed while an instance is destroyed.

Description:

C# - Private Constructor in C# with Example

Sep 27, 2013 7 comments
Introduction:

Here I will explain what is private constructor in c# with example. Private constructor in c# is used to restrict the class from being instantiated when it contains every member as static.

Description:

C# - Static Constructor in C#.NET with Example

11 comments
Introduction:

Here I will explain what is static constructor in c# with example. Static constructor in c# is used to create static fields of the class and to write the code that needs to be executed only once. 

Description:

C# - Copy Constructor in C# with Example

1 comments
Introduction:

Here I will explain what is copy constructor in c# with example. Copy constructor in c# is used to create new instance to the values of an existing instance.

Description:

C# - Constructors in C# with Example, Types of Constructor in C# with Example

Sep 25, 2013 78 comments
Introduction:

Here I will explain what is constructor in c# with example, uses and types of constructors in c# default constructor, static constructor, copy constructor, parameterized constructor and private constructor examples in c#.net.  

Description:

In previous posts I explained use of virtual, override and new keyword with examples in c# method overloading and overriding, delegates example in c#, sealed class in c#, using statement in c#, OOPS examples in c# and many articles relating to interview questions in c#, asp.net, SQL server, JavaScript, jQuery. Now I will explain constructor in c#.net with example and different types of constructor in c#.net with example.

C# - Difference between Virtual Override New Keywords with Example

Sep 23, 2013 11 comments
Introduction:

Here I will explain difference between virtual override and new keywords in c#.net or virtual, override and new keywords example in c#.net

Description:

In previous posts I explained method overloading and overriding, delegates example in c#, sealed class in c#, using statement in c#, OOPS examples in c#, difference between wcf and web application, interview questions in asp.net, sql server, c# and many articles relating to interview questions in c#, asp.net, sql server, javascript, jquery. Now I will explain difference between virtual override and new keywords in c#.net with example.

C# - What is Difference between Overriding and Overloading with Example

Sep 22, 2013 22 comments
Introduction:

Here I will explain difference between overloading and overriding in c#.net with example or c#.net overloading vs. overriding with example. 

Description:

C# - What is Delegates in C# Example | Use of Delegates in C#

Sep 20, 2013 43 comments
Introduction:

Here I will explain what is delegates in c#.net with example. Basically delegates in c# are type safe objects which are used to hold reference of one or more methods in c#.net. Delegates concept will match with pointer concept of c language.  

Description:

C# - Early Binding and Late Binding with Example & Difference b/w Early & Late Binding

Sep 19, 2013 9 comments
Introduction:

Here I will explain difference between early binding and late binding in c#.net with example or c#.net late binding vs early binding with example. 

Description:

C# - Difference b/w Compile Time Polymorphism and Runtime Polymorphism with Example

Sep 18, 2013 5 comments
Introduction:

Here I will explain difference between compile time polymorphism and runtime polymorphism in c#.net with example or c#.net compile time vs. runtime polymorphism with example. 

Description:

C# - Types of Polymorphism in C#.Net with Example | Basic Polymorphism in C#.NET

38 comments
Introduction:

Here I will explain what is polymorphism in c#.net with example and different types of polymorphism (compile time & runtime polymorphism) in c#.net with example. 

Description:

what are the sealed classes in c# | uses of sealed keyword in c# |Sealed classes example in c# | Object-Oriented Programming: Sealed Classes

Nov 6, 2011 18 comments
Introduction

Here I will explain what are the sealed classes in c# and uses of sealed classes in c#.

Description:

In previous article I explained clearly about OOPS concepts now I will explain what is the use of sealed classes in c#. Generally if we create classes we can inherit the properties of that created class in any class without having any restrictions. In some situation we will get requirement like we don’t want to give permission for the users to derive the classes from it or don’t allow users to inherit the properties from particular class in that situations what we can do? 

Introduction to Object Oriented Programming Concepts (OOPS) in C#.net

Apr 16, 2010 502 comments
OOPS Concepts

Class:

 It is a collection of objects.

Object:

It is a real time entity.
An object can be considered a "thing" that can perform a set of related activities. The set of activities that the object performs defines the object's behavior. For example, the hand can grip something or a Student (object) can give the name or address. In pure OOP terms an object is an instance of a class

C# - Difference between Abstract class and Interface in Asp.Net

Apr 6, 2010 56 comments
In previous article I explained complete OOPS Concept. Now I will explain differences between Abstract classes and Interfaces.

An Abstract class without any implementation just looks like an Interface; however there are lot of differences than similarities between an Abstract class and an Interface. Let's explain both concepts and compare their similarities and differences.

What is an Abstract Class?

An abstract class is a special kind of class that cannot be instantiated. So the question is why we need a class that cannot be instantiated? An abstract class is only to be sub-classed (inherited from). In other words, it only allows other classes to inherit from it but cannot be instantiated. The advantage is that it enforces certain hierarchies for all the subclasses. In simple words, it is a kind of contract that forces all the subclasses to carry on the same hierarchies or standards.
© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.