Sams Teach Yourself C in 21 Days

(singke) #1
The C# Programming Language 769

BD7


C# Is Modular ................................................................................................


Like Java, C# code is written in chunks called classes,which contain routines called
member methods. These classes and methods can be reused in other applications or pro-
grams. By passing pieces of information to the classes and methods, you can create
useful, reusable code.

C# Will Be Popular ......................................................................................


C# is one of the newest programming languages. At the time this book was written, C#
was gaining popularity; however, its future was still unknown. It is a good bet that C#
will become a very popular language for a number of reasons. One of the key reasons is
Microsoft and the promises of .NET.
Microsoft wants C# to be popular. Although a company cannot make a product be popu-
lar, it can help. Not long ago, Microsoft suffered the abysmal failure of the Microsoft
Bob operating system. Although Microsoft wanted Bob to be popular, it failed.
C# stands a better chance of success than Microsoft Bob. I don’t know whether people at
Microsoft actually used Bob in their daily jobs. C#, however,isbeing used by Microsoft.
Many of its products have already had portions rewritten in C#. By using it, Microsoft
helps validate the capabilities of C# to meet the needs of programmers.
Microsoft .NET is another reason why C# stands a chance to succeed. .NET is a change
in the way the creation and implementation of applications is done. Although virtually
any programming language can be used with .NET, C# is proving to be the language of
choice.
C# will also be popular for all the features mentioned earlier: simplicity, object-orienta-
tion, modularity, flexibility, and conciseness.

C# Versus Other Programming Languages ........................................................


Perhaps you’re wondering about the differences between C# and languages like C++ and
Java. You might also be wondering whether C# is worth learning.

There are a few other reserved words used in C# programs. While not key-
words, they should be treated as though they were. Specifically, get,set,
andvalue.

Note


42 448201x-Bonus7 8/13/02 11:24 AM Page 769

Free download pdf