Cis247 final exam 3 best tutorial available

Page 1

CIS247 Final Exam 3 Best Tutorial Available

Download here: http://homeworkfox.com/tutorials/computer-science/11820/cis247-fin


1. (TCO 8) Briefly describe which elements of a class use the Pascal case, and what are the best practices regarding the naming of these elements. (Points : 18) 2. (TCO 2) Does Encapsulation imply Data/Information Hiding in object-oriented programming or vice versa? Are these two terms the same? Please explain. (Points : 18) 3. (TCO 2) Given the following list of classes, attributes and methods,

· identify which items are classes, which items are attributes and which items are methods; · identify which class each attribute and method belongs to; and · suggest a class hierarchy given your list of classes.

*Note - no particular capitalization 4. (TCO 7) How do you distinguish between virtual functions and pure virtual functions? How do you use the abstract class and the methods defined inside the abstract class? (Points : 18) 5. (TCO 4) Explain how inheritance allows you to use knowledge of general situations and apply it to more specific categories. List the benefits of using inheritance. (Points : 18) 6.(TCO 6) How does polymorphism promote extensibility? How does polymorphism enables you to program "in the general" rather than "in the specific." Explain the key advantages of programming "in the general." (Points : 18) 7. (TCO 2) Define and implement the overloaded constructors that support the following test function for an Employee class. The data members for the Employee class are:


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.