[Skip Navigation] [CSUSB] / [CNS] / [CSE] / [R J Botting] / [CSE201] / 14
[Text Version] [Syllabus] [Schedule] [Glossary] [Labs] [Projects] [Resources] [Grading] [Contact] [Search ]
Notes: [01] [02] [03] [04] [05] [06] [07] [08] [09] [10] [11] [12] [13] <14> [15] [16] [17] [18] [19] [20]
Labs: [01] [02] [03] [04] [05] [06] [07] [08] [09] [10]
Tue May 14 15:53:19 PDT 2013

Contents


    cs201/14

      Previous 13 classes

      [ 13.html ]

      Project 6 Due

      [ projects.html#P6 ]

      Study 5.7-5.8 page 249-253

        5.7 Accessing data fields

        Would your watch work better if it had a hole in it and you could poke a knife into it?

        5.8 Comparing Member Functions with Normal Functions

        Normal functions are outside of classes and are called without any object:
          function(argument)
      1. cout << function(argumentValue);

        Member functions belong to classes. They are declared inside the class

         	class Class{ ........ type function(parameters); .... };
        and defined as being in the Class:
        	Class::function(arguments)

        Outside the class they are always called with objects.

          object.function(arguments)

        In methods in the class the object is implicit (*this).

        C++ gets confused if you muddle them up.

      Advanced Topic 5.1 -- initializing fields

      Out of sequence -- go back see this neat abbreviation later.

      Syntax 5.4 Constructor with field initialization

       		ClassName::ClassName(parameters): fields
      (Only works with constructors, not mutators or accessors:-(

      Summary of Classes for CS201

      [ classes.html ]

      Review Questions

      Do as many of R5.14, R5.15, R5.16, R5.17, R5.18, R5.19 as you can and hand in one for credit.

      Exercise -- Design and code a class that models a Card

      [ cardshark0.cpp ] (before class) and [ cardshark.cpp ] (after class).

      Quiz 6 -- Classes Members Function data objects

      Lab 7

      [ lab07/ ]

      Next 15 Multifile programming

      [ 15.html ]

    Abbreviations

  1. Algorithm::=A precise description of a series of steps to attain a goal, [ Algorithm ] (Wikipedia).
  2. Class::=A description of a type of object that includes the data it knows and the functions it can execute.
  3. Function::programming=A selfcontained and named piece of program that knows how to do something.
  4. Gnu::="Gnu's Not Unix", a long running open source project that supplies a very popular and free C++ compiler.
  5. OOP::="Object-Oriented Programming", Current paradigm for programming.
  6. Semantics::=Rules determining the meaning of correct statements in a language.
  7. SP::="Structured Programming", a previous paradigm for programming.
  8. Syntax::=The rules determining the correctness and structure of statements in a language, grammar.
  9. Q::software="A program I wrote to make software easier to develop",
  10. TBA::="To Be Announced", something I should do.
  11. TBD::="To Be Done", something you have to do.
  12. UML::="Unified Modeling Language", industry standard design and documentation diagrams.
  13. void::C++Keyword="Indicates a function that has no return value".

( End of document ) <<Contents | Top