CIS 162 AD - C# Programming I - Section 5832
Worksheet #7
Due Thursday, April 27, 2006

Name:

I. Definitions:please explain the following terms

  1. abstraction

  2. inheritance

  3. polymorphism

  4. base class

  5. DLL

  6. override a method

  7. virtual method

  8. abstract class

  9. Interface

II. Questions or short essay:

  1. How is an "is-a" relationship different from a "has-a" relationship?

  2. What is the significance of the Object class?

  3. Why must constructors have public access?

  4. What is the purpose of the private access modifier?

  5. What is the purpose of the protected access modifier?

  6. What syntax is used to call a parent constructor from the constructor of the derived class?

  7. What is the purpose of properties?
III. Programming Exercise: Write source code for the following

    Create a base banking account. Decide what characteristics are common for savings and checking accounts and include these characteristics in the base class. Define subclasses for checking and savings. Include a presentation class to test your design.