O'Reilly logo

.NET Common Language Runtime Unleashed by Kevin Burton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Basic Programming Elements of C#

After you have an understanding of the structure of an object-oriented program, the rest is pretty much just filling in the blanks. Now you can quickly go through each of the basic elements of a C# program.

abstract

I have discussed a little bit about an abstract class. You can use the abstract modifier to declare an abstract method or property. An abstract class has the following properties:

  • An abstract class cannot be instantiated.

  • A non-abstract class that is derived from an abstract class must implement all of the abstract methods and properties.

  • An abstract class must provide implementations for all of the methods of an inherited interface.

  • An abstract class can declare its “implementation” of an interface method ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required