If you form your own team of four Team registrations must occur Monday November

If you form your own team of four team registrations

This preview shows page 14 - 32 out of 112 pages.

If you form your own team of four: Team registrations must occur Monday, November 3rdIf you are not registered on a team by Monday: Individual matching requests must be submitted Tuesday, November 4thYou may indicate a project preference, but we will not guarantee project matching You must complete one or the otherNot both!
Background image
Source Control Revision control Manage and collaborate on your project source code Showcase projects must use git Simple, efficient way to code in groups We will use GitHub for all repositories All project repositories must be private! We will provide help with repositories and git
Background image
Showcase Projects Arduino Micro Arcade Pokémon Battle Tower Game UM Web Schedulizer Game of Life!!! Predictive Capability Piazza Word Clouds
Background image
Object Oriented Programming Encapsulation Value of classes and objects Defining classes Data encapsulation Procedural encapsulation Declaring and using objects
Background image
Procedural vs OOP Function Function Function Function Data Function Function Function Function Attributes (Data)_____________Actions (functions) Object Attributes (Data)_____________Actions (functions) Object Attributes (Data)_____________Actions (functions) Object Procedural Object-Oriented
Background image
Example: Auction - Procedural DATABidder1ID Bidder1Name Bidder1Price Bidder2ID Bidder2Name Bidder2Price reservePrice readName readPrice ….….calcWinner printWinnerDetails ….
Background image
Example: Auction Object Oriented id name bidPrice ____________ readName() readPrice() Bidder 1 id name bidPrice ____________ readName() readPrice() Bidder 2 Auction Bidder1 Bidder2 ____________ startAuction() calcWinner() printWinnerDetails
Background image
What are the advantages of Object Oriented Programming?
Background image
Easier to model the real world 1 University Instructor Student Building Classroom The world conceptually consists of objects
Background image
Encapsulation 2 int studentID1;int studentID2;string studentFirstName1;string studentFirstName2;string studentLastName1;string studentLastName2;// functions No Encapsulation
Background image
Encapsulation 2 int studentID1;int studentID2;string studentFirstName1;string studentFirstName2;string studentLastName1;string studentLastName2;// functions class Student{ int id;string firstName;string lastName;// functions};Student s1, s2; No Encapsulation Code & Data Together
Background image
Abstraction (information hiding) 3 Public Interface Hidden Impl. Private Data Client You can use a car without knowing how the engine works You can use an object without knowing its implementation
Background image
Access Control (Data Protection) 4 Client Code (e.g. main) Data Members class Member Functions
Background image
class Programmer doesn't implement single object implements a class
Background image
class vs. instance of class (object) class Instancesof house described by blueprint
Background image
Class you Already Know #include <string>string cityName; class instance
Background image
Class you Already Know #include <string>string cityName; tells compiler how to allocate sets up space in memory
Background image
Class you Already Know #include <string>string cityName;cityName = "Ann Arbor"; assign value into instance
Background image
Image of page 32

You've reached the end of your free preview.

Want to read all 112 pages?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes