Fund. of Software Dev Honors
Fund. of Software Dev Honors CSSE 221
Popular in Course
Popular in Computer Science and Engineering
This 1 page Class Notes was uploaded by Miss Terry Reichel on Monday October 19, 2015. The Class Notes belongs to CSSE 221 at Rose-Hulman Institute of Technology taught by Staff in Fall. Since its upload, it has received 16 views. For similar materials see /class/225101/csse-221-rose-hulman-institute-of-technology in Computer Science and Engineering at Rose-Hulman Institute of Technology.
Reviews for Fund. of Software Dev Honors
Report this Material
What is Karma?
Karma is the currency of StudySoup.
Date Created: 10/19/15
David McGinnis Paul Morrison Eric Crockett Anonvmous Classes Summary An anonymous class is a type of inner class which is defined without ever giving a name Since it has no name it can only be used once They are used heavily in defining eventListeners without having to make a new function or make a class which extends eventListener Anonymous classes allow multiple eventListeners to be made with no if statements inside of them thus cleaning up the code and allowing for more efficient use of space A sample of how this type of classe could be used is the following buttonaddActionListenernew ActionListener public void actionPerformedActionEvent e doStuff B These functions can be called anywhere inside of a function with a variable etc Can be used to define a function which implements an interface without ever declaring a class which implements the interface It is still bound to complete an interface s methods but does so without creating a new class