Recent Posts
ASP.Net C# Professional
Return To Blog Listing
I realized that one of the biggest problems for novices is, the lack of knowledge in the learning progress so this blog have huge amount of ASP.NET material to help programmer to perform better in his/her Programming and Coding skill.
Recent Posts Tagged With 'protected'
Partial Classes in ASP.Net 2.0
It is possible to split the definition of a class or a struct, an interface or a method over two or more source files. Each source file contains a section of the type or method definition, and all parts are combined when the application is compiled.P...
Methods in ASP.net C# Programming
A method is a code block that contains a series of statements. A program causes the statements to be executed by calling the method and specifying any required method arguments. In C#, every executed instruction is performed in the context of a metho...
Properties in ASP.Net C# Programming
Properties are members that provide a flexible mechanism to read, write, or compute the values of private fields. Properties can be used as if they are public data members, but they are actually special methods called accessors. This enables data to ...
What is Fields in ASP.Net C# Programming
A field is a variable of any type that is declared directly in a class or struct. Fields are members of their containing type.A class or struct may have instance fields or static fields or both. Instance fields are specific to an instance of a type. ...
Programming Guide ASP.Net C# Tutorial
Classes and structs have members that represent their data and behavior. A class's members include all the members declared in the class, along with all members (except constructors and destructors) declared in all classes in its inheritance hierarch...
Static Class Tutorial ASP.Net C#
Declare static class members by using the static keyword before the return type of the member.static class:Contains only static members.Cannot be instantiated.Is sealed.Cannot contain Instance Constructors.A static class is basically the same as a no...
Abstract Classes Tutorial C# ASP.Net
Classes can be declared as abstract by putting the keyword abstract before the class definition. For example:public abstract class A{ // Class members here.}An abstract class cannot be instantiated. The purpose of an abstract class is to provide a...
Sealed Classes ASP.Net C# Tutorial
Classes can be declared as sealed by putting the keyword sealed before the class definition. For example:public sealed class D{ // Class members here.}A sealed class cannot be used as a base class. For this reason, it cannot also be an abstract cl...
Polymorphism in ASP.Net C# Tutorial
Polymorphism is often referred to as the third pillar of object-oriented programming, after encapsulation and inheritance.At run time, objects of a derived class may be treated as objects of a base class in places such as method parameters and collec...
Derived Class Access to Base Class Members in ASP.Net C#
A derived class has access to the public, protected, internal, and protected internal members of a base class. Even though a derived class inherits the private members of a base class, it cannot access those members. However, all those private member...
Interfaces Tutorial in ASP.Net C#
An interface is a reference type that is somewhat similar to an abstract base class that consists of only abstract members. When a class derives from an interface, it must provide an implementation for all the members of the interface. A class can im...
Abstract Base Classes in ASP.Net C#
Declare a class as abstract if you want to prevent direct instantiation by means of the new keyword. If you do this, the class can be used only if a new class is derived from it. An abstract class can contain one or more method signatures that thems...
Abstract and Virtual Methods in ASP.Net C#
When a base class declares a method as virtual, a derived class can override the method with its own implementation. If a base class declares a member as abstract, that method must be overridden in any non-abstract class that directly inherits from t...
Structs in ASP.Net C# Programming
Structs are defined by using the struct keyword.public struct PersonAddress{ // Fields, properties, methods and events go here...}Structs share most of the same syntax as classes, although structs are more limited than classes:Within a struct decl...
