GoConqr has a new look! Let us know what you think.

Notes

Interfaces

Davie Crellin C# English 1 page

Content of the notes (1)

Page 1

CONCRETE AND ABSTRACT CLASSES

Concrete Classes

A concrete class is just a normal class which can contain fields, properties, and methods. With normal classes, we can create objects to be used for various means.

Abstract Classes

An abstract class is similar to a concrete class but can contain properties or methods which are marked as abstract. This means those class members which have been marked as abstract do not have to declare the implementation, only the declaration.

If we mark methods within an abstract class as abstract then any classes which inherit the base class need also use those methods which have been declared as abstract.

When To Use Abstract Classes

Usually, abstract classes would be used when we want to create a base class and not make it possible to be able to create an instance of those that class.

Information

Description
C# Note on Interfaces, created by Davie Crellin on 16/10/2017.
Created by
Davie Crellin
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?