Doyle: C#, 4th edition ISBN 978-1-285-09626-1 Page 1-1
C# Programming: From Problem Analysis to Program Design, 5th edition
Chapter 11
1. d. encapsulation
2. c. inheritance
6. e. object
7. d. all of the above
12. a. each project must consist of code in one language only
13. c. add a using directive
Doyle: C#, 4th edition ISBN 978-1-285-09626-1 Page 1-2
16. e. all of the above
17. b. abstract methods
21. Explain the difference between an overloaded and an overridden method.
Give an example of each.
Overridden methods must have exactly the same signature as the method it is
example of an overridden method.
22. How do abstract classes differ from interface classes?
Doyle: C#, 4th edition ISBN 978-1-285-09626-1 Page 1-3
When you use the abstract modifier with a class, you are indicating it is intended to
23. Define a read-only property for the pay data member.
24. Define a default constructor for Employee.public class Employee( )
{
Doyle: C#, 4th edition ISBN 978-1-285-09626-1 Page 1-4
}
25. Define a more useful constructor that could be used to instantiate objects of the
class.
}
26. Define a subclass named HourlyEmployee with additional members of hours
and payrate.
}
27. Define a constructor for HourlyEmployee that sends the employee number to
Doyle: C#, 4th edition ISBN 978-1-285-09626-1 Page 1-5
}
28. Create a method in the Employee class to determine the pay amount. It should
be capable of being overridden in subclasses.
29. Provide new implementation details in the HourlyEmployee class for the
Doyle: C#, 4th edition ISBN 978-1-285-09626-1 Page 1-6
30. Define the heading for a generic method ProcessData that has one generic