mirror of
https://github.com/github/codeql.git
synced 2026-01-02 17:26:44 +01:00
29 lines
369 B
Java
29 lines
369 B
Java
// File 1
|
|
package gui;
|
|
|
|
abstract class Widget
|
|
{
|
|
// ...
|
|
|
|
// Return the width (in pixels) of this widget
|
|
int width() {
|
|
// ...
|
|
}
|
|
|
|
// ...
|
|
}
|
|
|
|
// File 2
|
|
package gui.extras;
|
|
|
|
class PhotoResizerWidget extends Widget
|
|
{
|
|
// ...
|
|
|
|
// Return the new width (of the photo when resized)
|
|
public int width() {
|
|
// ...
|
|
}
|
|
|
|
// ...
|
|
} |