Interfaces and all that; Thoughts on Hashing Ch. 6.

Slides:



Advertisements
Similar presentations
QUIZ-A QUICK PROGRESS CHECK ON YOUR UNDERSTANDING.
Advertisements

The Supply and Demand Side Impacts of Credit Market Information Discussion Atif Mian, Chicago GSB.
Teaching Sight Words To Your Child…. Remember, before you begin…. Make 2 copies of the words on index cards.
Object-Oriented Programming
Object-Oriented Programming Python. OO Paradigm - Review Three Characteristics of OO Languages –Inheritance It isn’t necessary to build every class from.
Find the HCF and LCM When finding the HCF and LCM of relatively low/easy numbers we can use the methods that we are used to such as find the HCF and LCM.
Inheritance Java permits you to use your user defined classes to create programs using inheritance.
Sadegh Aliakbary. Copyright ©2014 JAVACUP.IRJAVACUP.IR All rights reserved. Redistribution of JAVACUP contents is not prohibited if JAVACUP.
Advanced Programming in Java
Sadegh Aliakbary Sharif University of Technology Fall 2010.
ITEC200 – Week03 Inheritance and Class Hierarchies.
Interface & Abstract Class. Interface Definition All method in an interface are abstract methods. Methods are declared without the implementation part.
Create Your Own Quiz Quiz Rules & Guidelines  You and your partner will create a minimum 5 problem, multiple choice quiz along with an answer key. 
UML Class Diagram: class Rectangle
Abstract Classes b b An abstract class is a placeholder in a class hierarchy that represents a generic concept b b An abstract class cannot be instantiated.
1 st Grade Mathematics Students will have a basic understanding of adding numbers. Students will have basic word problem skills. Students will know basic.
Grid References To be able to find places on the map using 4 figure and 6 figure grid references.
Gateway Quiz Reminders: The next Gateway will be given in class next week or the week after )check your course calendar.) Before then, each student who.
Please close your laptops and turn off and put away your cell phones, and get out your note-taking materials. Today’s daily homework quiz will be given.
Introduction While it may not be efficient to write out the justification for each step when solving equations, it is important to remember that the properties.
2.5 OOP Principles Part 1 academy.zariba.com 1. Lecture Content 1.Fundamental Principles of OOP 2.Inheritance 3.Abstraction 4.Encapsulation 2.
Inheritance. Types of Inheritance Implementation inheritance means that a type derives from a base type, taking all the base type’s member fields and.
CSE 425: Object-Oriented Programming II Implementation of OO Languages Efficient use of instructions and program storage –E.g., a C++ object is stored.
CSC 211 Introduction to Design Patterns. Intro to the course Syllabus About the textbook – Read the introduction and Chapter 1 Good attendance is the.
Using the formula sheet Equations typically contain one or more letters These letters are called variables Variables : an unknown in an equation EXAMPLE:
ORDER OF Operations Review A B C Which example below shows the Zero Property of Multiplication? 1 0 = = 1 End Review Question 1.
Multiplying Matrices Dr. Shildneck Fall, Can You Multiply Matrices? ›What do you think has to be true in order to multiply? ›What procedure do you.
Jack’s Marbles 4 th Grade Mathematics Middle Childhood Mathematics and Language Arts (4-9) Sierra Herold Click to Begin!
AP Computer Science A – Healdsburg High School 1 Interfaces, Abstract Classes and the DanceStudio - Similarities and Differences between Abstact Classes.
$1,000,000 $500,000 $100,000 $50,000 $10,000 $5000 $1000 $500 $200 $100 Is this your Final Answer? YesNo Question 2? Correct Answer Wrong Answer.
Solve by using the ELIMINATION method The goal is to eliminate one of the variables by performing multiplication on the equations. Multiplication is not.
Your name odd, … {18} Work work Work Your name odd, … {32} Work work Work Homework – Scoring and Grading Each HW Package contains 3 or.
C# G 1 CSC 298 Object Oriented Programming Part 2.
Inequalities and their Graphs Objective: To write and graph simple inequalities with one variable.
Relations And Functions. A relation is a set of ordered pairs {(2,3), (-1,5), (4,-2), (9,9), (0,-6)} This is a relation The domain is the set of all x.
Lecture 21 - Abstract Classes and Interface. Example Figure –Rectangle –Triangle Figure –Dimensions –Area.
ON YOUR DESK COPY THE AGENDA DO PROBLEMS 7 (PG 1) AND 44 (PG 11) IN OAA NOTEBOOK GET NOTES OUT.
Interfaces Chapter 9. 9 Creating Interfaces An interface is a contract. Every class that implements the interface must provide the interface’s defined.
Interfaces F What is an Interface? F Creating an Interface F Implementing an Interface F What is Marker Interface?
Solving Equations. GOAL: To Be Able To Solve Equations in a systematic manner Solving Equations: – The goal is to get one of the variables (the one we’re.
Lecture 2: Review of Object Orientation. © Lethbridge/La ganière 2005 Chapter 2: Review of Object Orientation What is Object Orientation? Procedural.
Gateway Quiz Reminders: The next Gateway will be given in class next week (check your course calendar.) Before then, each student who did not score 8/8.
Object orientation and Packaging in Java Object Orientation and Packaging Introduction: After completing this chapter, you will be able to identify.
Solving Quadratic Equations by Factoring. Zero Product Property For any real numbers a and b, if the product ab = 0, then either a = 0, b = 0, or both.
Expressions and Equations 5.ATO.1 Evaluate numerical expressions involving grouping symbols (i.e., parentheses, brackets, braces). 5.ATO.2 Translate verbal.
Section 3.3 Solving Equations with Distribution Mr. Beltz & Mr. Sparks.
NON-LINEAR POWERPOINT MEAN AND MODE Introduction Lesson Quiz.
CSCE 240 – Intro to Software Engineering Lecture 3.
Good Luck !! Type your Instructions for your quiz.
1 Section 11.4 Java Interfaces – The Implementation Perspective Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Advanced Programming in Java
Advanced Programming in Java
Sections Inheritance and Abstract Classes
Multiplication Past Paper Questions.
Students will solve two step equations (12-4).
Interfaces Professor Evan Korth.
Gateway Quiz Reminders:
UML Class Diagram: class Rectangle
Interfaces.
Interfaces.
Multiple Inheritance & Interfaces
Advanced Programming in Java
Advanced Programming in Java
Quiz Name Here Click to start.
Quiz Name Here Click to start.
1st 9 Weeks TEST REVIEW 10/21/2015.
Relations And Functions.
Relations And Functions.
AP Computer Science DYRT Quiz
Day 4 Chemical Equilibrium
Presentation transcript:

Interfaces and all that; Thoughts on Hashing Ch. 6

Quiz directions Individual section Circle correct answer for each question You get 2 tries for each question Correct on 1st try (top line): 3 pts Correct on 2nd try (bottom line): 1 pt Keep your answers! (On quiz sheet) Hand in sheet when complete Group section Start when all members of group are done w/ individual Again, 2 tries Grade yourselves as you go along Hand in final group sheet

The Map hierarchy

Why all the complexity? Why two interfaces, an abstract class, and a bunch of concrete classes? Common OO design principle Interface: provides a contract or specification of what an object should be able to do Has no data of its own AbstractClass: provides “most” of the implementation of an interface Takes grunt work out of instantiating an interface May not be the most efficient possible Concrete Class: provides everything necessary to use

Interchangability Common view of interfaces: “Interfaces are Java’s kludge to get around the lack of multiple inheritance” WRONG! (mostly) Interfaces describe properties of a thing -- how you can use it Any two objects that obey the same interface are (should be) semantically interchangeable Can plug either in to same place and have function of program remain same They may support diff extra stuff, side effects, have different efficiencies, etc.

Using interfaces Can’t call “new” on an interface Interface isn’t a full-fledged class Can declare a variable to be of an interface type Map localMap=new MondoHashMap(); Note: thing on left can be an interface, thing on right must be a concrete class (or something that produces an object of a concrete class) Can always refer to an object by one of its interfaces