Sams Teach Yourself C in 21 Days

(singke) #1
782 Week 4

In days four, five, and six of the bonus week, you learned about Java. In Bonus Day 4,
you learned about the basic components of a Java program, as well as about the key-
words, identifiers, program flow, and data types. In Bonus Day 5 you learned how to
define classes, objects, and packages in Java. You learned that a class is an independent
software component that can have properties (which hold data) and methods (which per-
form actions).
In Bonus Day 5, you also learned that a Java file must use the importkeyword in order
to use classes that are not a part of its project. Day 5 ended with an introduction to using
the very powerful, object-oriented technique of inheritance, permitting new classes to be
created based on existing classes.
On Day 6 you wrapped up your Java primer. You saw how to use exceptions to deal with
runtime errors; you learned to read and write files and how to do graphics with Java.
Your day ended with a discussion and an example of using Java applets.
You finished the bonus week with a quick look at C# on Day 7. You learned why this
newest of the languages is destined to be popular. You also saw a couple of simple C#
programs.
Your experiences in the bonus week give you an idea of what it takes to program in C++,
Java or C#. These primers presented you with enough information to get started writing
your own programs and applets.

43 448201x-W4R 8/13/02 11:19 AM Page 782

Free download pdf