CSCE 3193 Lecture Notes - Lecture 10: Abstract Window Toolkit

35 views2 pages

Document Summary

Several high performance algorithms for manipulating collection elements. If class is abstract, can"t be instantiated, must be extended, considered concrete, then instantiable. Can use polymorphic behavior, treat each abstract class as object form parent class, call methods from parent. Can implement multiple interfaces, only can extend one class. Class that implements comparator must declare a compare method; receive 2 args, returns neg int if firt arg is < 2nd, 0 if args equal, pos int if 1st >2nd. Enable you to specify with a single method declaration, a set of related methods, or a single class declaration, a set of related types, respectively. Java automatically calls tostring when an object is passed when expecting a string. If operations performed by several overloaded methods are identical for each argument type, overloaded methods can be more compactly and conveniently coded using generic method. Provide a means for describing the concept of a stack(or any other class) in a type-independent manner.

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