4-9 interfaces

4-9 interfaces - Private See ExampleBankAccount...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Computer Programming 4/9/08: More on Interfaces Anything that is a variable in an interface must be a constant In chapter 9, you can read the first three or four pages and the last couple pages Access codes: Public Package-(default)visible within the same package Protected-visible within the class it’s defined and all its subclasses
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Private See ExampleBankAccount! Constructors in super and subclasses: they are chained will call constructor of the superclass when constructing subclass goes to top of superclass chain and will use the constructors down the entire chain See ExampleBankAccount2!...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online