CSE 205 Lecture Notes - Lecture 8: Abstract Type, Reserved Word, Standard Error

57 views4 pages

Document Summary

Io streams: a stream is a sequence of bytes that flow from a source to a destination, the io streams can be categorized in three ways: If a nested class called inside is declared in an out class called outside, two bytecode files will be produced: outside. class, outside. class. Interface is a reserved word: none of the methods in an interface are given a definition (body, a semicolon immediately follows each method header, constants in an interface cannot be declared with private or protected, example: Interface cannot be instantiated: a class that implements an interface must define a definition for each method in the interface. Otherwise the class should be declared as abstract: a class that implements an interface can implement other methods as well, a class can implement multiple interfaces using commas between the interface names, example: //some content: a class that implements an interface can implement other methods as well.

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