

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Final Exam Review Notes: (pg. 1)
Final Exam Review Notes: (pg. 1) Description An approach to programming that uses a list of functions, or procedures, that tells a. computer what to do step-by-step. Application Also known as “Top Down Design," programmers will start at the beginning and work through every step. Languages = Early programming languages, including Fortran, COBOL, C, and BASIC, are mostly procedural. Example If you were planning a party the “procedural way," you'd list all the steps that need to be done: 1. Send invitations 2. Buy food 3. Decorate 4. Make a playlist 5. Prepare games: An approach to programming that uses objects to carry out different actions. Uses classes to define and create objects fora program. Programmers will write code and have objects interact and perform actions. Most of today’s newer languages, such as Python, Java, and C++, are object-oriented. If you were planning a party the "OOP" way, you would call [the object] partyPlanner that you used for your last party and have it do everything you need. Class: This refers to a template used to create new objects. Think of it as a blueprint that has existing characteristics you can use when creating new, but similar objects. Each time a new contact is added to your phone, it uses the contact class. Instance: Many instances of a class can be created. For example, an object is an instance of a class. One individual contact in your phone is an instance of a contact object. Constructor: This refers to the code that allows you to create a new object. It is a special method used when a new instance of a class is created. The initial values of the attributes are set. This is like adding (or constructing) hew contacts in your phone. Attributes: This refers to the features of an object. The attributes of a contact might include a phone number, email address, or picture. Attributes are often nouns and adjectives that define the properties or characteristics of the object. Initializing: This refers to what the constructor will do when you use it to create a new object. It will initialize the object in the program. When you create a new contact, all of the attributes will have initial values. Behaviors: Also known as methods, this refers to the actions an object performs. You can set specific ringtones or vibration patterns to a specific contact so that when that person calls, that specific behavior is performed.