Purchase Solution

C Sharp programming keywords

Not what you're looking for?

Ask Custom Question

Explain, using examples, the following C Sharp programming keywords

i.
this
ii.
public
iii.
interface
iv.
namespace
v.
using

Please see attachment file for more details

Attachments
Purchase this Solution

Solution Summary

C Sharp programming keywords are explained using examples.

Solution Preview

i. this

The this keyword refers to the current instance of the class in C#. The this keyword can be used to access members from within constructors, instance methods, and instance accessors.

Note, that static constructors and member methods do not have a this pointer because they are not instantiated.

See [1] for a good example.

ii. public

The public keyword in C# is an access modifier for types and type members. Please note, that public access is the most permissive access level. There are no restrictions on accessing public members, as in this example:

class aClass
{
public int x; // No access restrictions.
}

Two classes Point and MainClass are declared below. The public members x and y of ...

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

C# variables and classes

This quiz contains questions about C# classes and variables.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.