CIS 162 AD - C# Programming I - Section 5832
Worksheet #7
Due Thursday, April 27, 2006
Name:
I. Definitions:please explain the following terms
- abstraction
- inheritance
- polymorphism
- base class
- DLL
- override a method
- virtual method
- abstract class
- Interface
II. Questions or short essay:
- How is an "is-a" relationship different from a "has-a" relationship?
- What is the significance of the Object class?
- Why must constructors have public access?
- What is the purpose of the private access modifier?
- What is the purpose of the protected access modifier?
- What syntax is used to call a parent constructor from the constructor of the derived class?
- 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.