Current .Net Version: 1.1.4322
(select below)
.Net Framework
ASP.NET/Web Forms
C#
SQL Server
Visual C#
Windows Forms
XML Web Services
C# Reference
List:
Access Keyword
Access Modifier Keyword
Attribute
Conversion Keyword
Definition
Literal Keyword
Method Parameter Keyword
Modifier Keyword
Namespace Keyword
Operator
Operator Keyword
Preprocessor Directive
Statement Keyword
Type
Type Keyword
Search:
abstract
Is a:
Modifier Keyword
Applies to Version:
C# 1.0 and later
Namespace:
N/A
Assembly:
N/A (N/A)
Description:
A
modifier
that can be used with
class
es, methods, and properties. Abstract
class
es, methods, and properties MUST be implemented by the deriving
class
.You cannot define an
abstract
class
as
sealed
because it MUST be inherited. An
abstract
method is b
as
ically a
virtual
method. You cannot instantiate an
abstract
class
- it MUST be derived
int
o a new
class
.
Example(s):
// an abstract class public abstract class Test { // an abstract method public abstract int GetInt(); } // a deriving class public class MyTest : Test { // a derived and implemented method // remember, an abstract method is a virtual method public int GetInt() { return 1; } }
COPYRIGHT/DISCLAIMER
|
CONTACT US