Post date: Apr 15, 2015 6:16:17 AM
Quiz 2 for section 102 was conducted during the first meeting (on Monday)
Quiz 2 for section 101 was conducted during the second meeting (on Wednesday)
Assignment for SECTION 101 has been made available online.
Defining Classes 1
4.2 Information Hiding and Encapsulation
Recommended Self-Test Exercises:
p 231: Ex. 10-12.
p 249-250: Ex. 17-19.
Programming Exercises:
p 285: Ex. 3.
Class Rectangle (below) and its test program (see sample output):
Make sure the values entered for both length and width are positive numbers.
Class Circle (below) and its test program (similar to the previous example):
Make sure the values entered for radius are positive numbers.