Sections
7.1~7.2 on type systems,
Types and type checking are important.
You must know what you are working with to handle them properly.
Is C++ using Polymorphism? 291.
Could we do a quick lab using
enumerations in class. Just a 15 minute test where we
code and compare our work? 297.
Can anything be given the value of
void? 301.
Could we go over the example 7.31 in
class? Does the result a+b just make it int?
7.7
on pointers,
Pointers are powerful and if
understood, can be used for many things.
Example 7.11 on page
348. Why do we have nodes with no information but a pointer to the next
node? When is that good. Isn’t that an empty node and
should be discarded?
I don’t understand the example on 356
7.86. Why does p not print out &n? is it because n
is a local variable to the function foo?
Could you go over figure 7.14 on page
362? I am overwhelmed by it.
7.10
on equality test and assignment
It is very important to know what you
want to compare between two objects.
Page 369 example 7.95. Is there a way to check these three tests in C++?
*****************************************************************
Week 7:
Sections
9.1~9.4 of Programming Language Pragmatics
Spent two hours on the reading.
At the beginning I was doing fine with concentrating, but near the end of 9.4 I
was really struggling to understand the book. I covered it all and understood
about 75 – 80 % of it. I understood it mainly because we went over it in class
on Thursday.
Understanding these concepts is the basis of object
oriented programming.
It is funny to me that we have been learning object
oriented programming this whole time but this is our first reading in Object
oriented programming, encapsulation, abstraction, polymorphism, and
inheritance.
I understand the concept of extensions or refinements, I’m not sure how to implement them.
What function header do you use to redefine what
you want to? Do you use the same name?
Could we go over the example on 452, 453 on
linked lists?
Could you explain getters and setters on page 455
at bottom? The example is a little confusing.
Could we have more in class labs where we are given
a really easy assignment to try to code, like: write a class and print out the
contents, Just really simple hands on examples. Those
work best for me.