Alan Kaminsky
•
Department of Computer Science
•
Rochester Institute of Technology
•
4486
+
2220
= 6706
Home Page
Advanced Programming
•
4003-707-02
•
Fall Quarter 2008
Course Page
4003-707-02 Advanced Programming
Module 3. Classes and Interfaces -- Lecture Notes
Prof. Alan Kaminsky
Rochester Institute of Technology -- Department of Computer Science
Classes
Members of a class
Fields and how to access them
Constructors and how to call them
Methods and how to call them
Javadoc documentation
Access control
Public members
Private members
Static members
The diference between the class and the instances of the class
Static methods
Static fields
Final members
Final methods
Final fields
Overloading
Overloaded constructors
Overloaded methods
Interfaces
Members of an interface
Public methods
Constants (public static final fields)
Not allowed in an interface:
Private members
Method bodies
Constructors
Class that implements one or more interfaces
Inheritance
Class that extends one (and only one) superclass
Overriding
Overriding a superclass method in a subclass
Hiding a superclass field in a subclass (bad idea)
Abstract methods
Access control
Public members
Private members
Protected members
Interface that extends one or more superinterfaces
Packages
Package declarations
Source code directory structure with packages
Access control
Public members
Private members
Protected members
Default-access (or package-access) members
Advanced Programming
•
4003-707-02
•
Fall Quarter 2008
Course Page
Alan Kaminsky
•
Department of Computer Science
•
Rochester Institute of Technology
•
4486
+
2220
= 6706
Home Page
Copyright © 2008 Alan Kaminsky. All rights reserved. Last updated 12-Sep-2008. Please send comments to ark
@
cs.rit.edu.