01:198:213 Lecture 9: Software Methodology Lecture 9

56 views1 pages

Document Summary

Define behavior in functional interface, an interface with only one method. Implement the method with an instance with an instance of the functional interface as the second argument. For each type of filter, create a class that implements the interface. Write anonymous interface on the fly when calling the filter method. A lambda expression is essentially a simplified syntax to define the method of a functional interface (arguments) -> return body. Similar as above, instead of using interface, insert directly into function. Function gets compiled to instance of an object which can be accepted into the function s arguments. Defining classes inside of class definitions e. g. defining static node class inside of. However in outside class, node has to be referenced statically through linkedlist i. e. linkedlist. node.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents