SE-1021 Software Engineering II Week 5, Class SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick 1.

Slides:



Advertisements
Similar presentations
SE2811 Week 8 Monday (last drop day) The Command Pattern Lambda Expressions SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr.
Advertisements

Announcement Dear CEs, It’s my pleasure to begin this invitation by welcoming our new CE freshmen! I look forwarding to seeing you and all our returning.
Week 8, Class 3: Model-View-Controller Model-View-Controller Why? What? How? Example: Barnyard Simon for the Web Question: Where should we use the command.
Week 4 Recap CSE 115 Spring Formal Parameter Lists Comma-separated list of formal parameters Formal parameters are listed giving the type of the.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
CSE 115 Week 3 January 28 – February 1, Monday Announcements Software Installation Fest: 2/5 and 2/6 4pm – 7pm in Baldy 21 Software Installation.
SE-3910 Real-time Systems Week 9, Classes 1 and 2 – Announcement* (regexp style) – Significance Testing – Failure statistics – Data flow diagrams SE-3910.
SE-1021 Software Engineering II Week 9, Class 3 Get ready for PollEverywhere! BlocksMania and File I/O Reading/Writing text in ASCII, Unicode, and UTF-8.
CS2910 Week 1, Class 3 Today Lab 1 – Additional Assignment Working Ahead Primitives in Java SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder.
SE1011 Week 2, Class 3 Today Compiling and running Another example using Scanner Compile-time and Run-time errors Review for exam SE-1011 Slide design:
SE-1021 Software Engineering II Week 8, Class 1 Return Exam Producing UML diagrams automatically in EA Poll Everywhere Files Tomorrow Week 6 HW due (if.
SE-1021 Software Engineering II Week 5, Class 2 Why my computer crashed Layouts Multiple action listeners Single actionPerformed method – distinguishing.
SE-1021 Software Engineering II Week 5, Class 1 Learning Resources From inner classes to anonymous Inner Classes Additional GUI components Inheritance.
CS-2852 Data Structures Week 5, Class 1 – Testing and Stacks Return Exams & Labs  Package-level access  UML connectors for instance variables Announcement:
SE-2811 Software Component Design Week 1, Day 2 (and 1-3 and 2-1) SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick 1.
CS-2852 Data Structures Week 5, Class 2 – Testing and Stacks Announcement: Lab Demos - 2/3 & 4 on Friday Testing  Definitions, Example  (tentative) Testing.
2-Dec-15 Inner Classes. 2 Inner classes All the classes so far have been “top level” It is possible (and useful) to define a class inside another class.
Week 3, Day 2: Threads Questions about Threads “Multithreading” in Swing Lab tomorrow: Quiz Lab 3: Threading! SE-2811 Slide design: Dr. Mark L. Hornick.
CS-2852 Data Structures Week 8, Class 1 Amortized ArrayList.add() CS-2852 Dr. Josiah Yoder Slide style: Dr. Hornick 1.
CS-2852 Data Structures Week 10, Class 3 Final Announcement re. Final Choosing a Data Structure (Concluded) Poll Everywhere Survey & Results Conclusion.
SE-1021 Software Engineering II Week 1, Day 2 Attendance Survey results: Use powerpoint Safety Review Preparation for Lab 1 More on Java fundamentals…
SE1011 Week 6, Class 1 Today Return Half Exam 2 (cont.) Object Oriented Programming (cont.) Muddiest Point Next Half Exam: Week 7, Monday SE-1011 Slide.
SE-3910 Real-time Systems Week 9, Classes 1 and 2 – Announcement* (regexp style) – Significance Testing – Failure statistics – Structured Analysis & Design.
SE1011 Week 6, Class 2 Today Return Half Exam 2 (cont.) Object Oriented Programming (cont.) UML class diagrams Muddiest Point Next Half Exam: Week 7, Monday.
SE1011 Week 6, Class 2 Today Return Half Exam 2 (cont.) Object Oriented Programming (cont.) UML class diagrams Muddiest Point Next Half Exam: Week 7, Monday.
SE1011 Week 3, Class 2 Today Sit down by someone you don't know Learn their name Find out who came farther to get to MSOE at the start of the quarter Designing.
Week 3, Day 3: Singleton Pattern Quiz Status Russia Opportunity Muddiest Points – Patterns SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick.
CE1901 Week 6, Class 3 Week 6 Mini-Exam Review Muddiest Point Timing Diagrams (See this slide and Outcomes on course webpage – link now available)Outcomes.
Week 7, Day 3 Half-Exam 2 A New Pattern SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1.
SE-1021 Software Engineering II Week 9, Class 1 ByteBuffer Tomorrow Get quizzes back from last week… Wednesday Quiz at start of lab 1.
Swing Threading Nested Classes COMP 401 Fall 2014 Lecture 23 11/25/2014.
CS-2852 Data Structures Week 10, Class 2 Announcement re. Final Choosing a Data Structure CS-2852 Dr. Josiah Yoder Slide style: Dr. Hornick 1.
Week 5, Day 3: Decorator Decorators Muddiest Point Tomorrow: Quiz on lab reading: web.msoe.edu/hasker/se2811/labs/5/ SE-2811 Slide design:
Week 5, Day 2: Decorator Decorators Muddiest Point Tomorrow: Quiz on lab reading: web.msoe.edu/hasker/se2811/labs/5/ SE-2811 Slide design:
CS2910 Week 4, Class 2 Today Sit by someone you have not yet worked with this quarter. Learn his/her name if unknown. Turn on your laptop and start Wireshark.
Object Oriented Programming in Java Habib Rostami Lecture 10.
Slide design: Dr. Mark L. Hornick
Week 6, Class 3: Composite Swing composites File composites Computer composites SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors:
CS-2852 Data Structures Week 5, Class 3 – Testing and Recursion Queue Implementing finite queues Binary Search Recursion Tomorrow – Quiz, Lab demos, Lab.
Inner Classes.
Topic: Inner Classes Course : JAVA PROGRAMMING Paper Code: ETCS-307 Faculty : Dr. Prabhjot Kaur Reader, Dept. of IT 1.
Inner Classes 27-Dec-17.
Slide design: Dr. Mark L. Hornick
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
Slide design: Dr. Mark L. Hornick
Week 2, Day 1: The Factory Method Pattern
SE-1021 Software Engineering II
Week 6, Class 2: Observer Pattern
SE-2811 Software Component Design
SE-1021 Software Engineering II
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
SE-1021 Software Engineering II
Inner Classes 17-Apr-19.
Inner Classes 21-Apr-19.
SE-1021 Software Engineering II
SE-1021 Software Engineering II
CS-2852 Data Structures Week 1, Class 1 Data Structures Syllabus
Slide design: Dr. Mark L. Hornick
Inner Classes 11-May-19.
SE-1021 Software Engineering II
Inner Classes 18-May-19.
SE-1021 Software Engineering II
SE-1021 Software Engineering II
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
SE-1021 Software Engineering II
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
Inner Classes 25-Oct-19.
SE-1021 Software Engineering II
Presentation transcript:

SE-1021 Software Engineering II Week 5, Class SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick 1

Announcement Johnson Controls CE event in the Todd Weir Auditorium on Monday, March 30, 5-7 PM (Spring Quarter) Direct Supply SE event Location TBA (but probably Todd Weir Aud.) Around the same time, but not on the same day… SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick 2

What is an inner class? An inner class is Declared inside of another class Usually declared private (needed by only one class) Has access to all variables of the top-level class Even instance variables! And so … _____________________________ Even private variables! And so … ______________________________ Dean & Dean, 2 nd Ed. Pp (Sec ) ested.html SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick 3

Drawing an inner class on a UML Diagram You might think we draw it like this: But actually, we draw it like _____________ SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick 4 Gui ButtonHandler

Drawing an inner class on a memory-map diagram You might think we draw it like this But actually, we will draw it like_____________ SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick 5 Gui ButtonHandler myGui Gui ref main

Anonymous Inner Class This is a class that is DECLARED at the same place it is INSTANTIATED in the program Syntax: new InterfaceName () { ClassBody } Use: Use it where you would use the constructor of the class SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick 6

Lambda Expression A lambda expression is an anonymous inner class with shorter syntax, for interfaces with just one method. Example: e -> myMethod(e) Use: Use it where you would use a constructor or an anonymous inner class. SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick 7

From the Horse’s Mouth* “Lambda expressions let you express instances of single-method classes more compactly.” OO/lambdaexpressions.htmlhttp://docs.oracle.com/javase/tutorial/java/java OO/lambdaexpressions.html (emphasis added) * “straight from the Horse’s mouth” is an idiom saying to get something from an authoritative source. It refers to looking into a horse’s mouth to determine its age. SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick 8