This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Rectangle { | |
public static final DEFAULT_EDGE_LENGTH = 1; | |
public final double a; | |
public final double b; | |
public final double c; | |
public Rectangle() { | |
this(DEFAULT_EDGE_LENGTH, DEFAULT_EDGE_LENGTH, DEFAULT_EDGE_LENGTH); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CounterClass { | |
private static counter = 0; | |
public static int getInstanceCount() { | |
return CounterClass.counter; | |
} | |
// final, ha leszármazunk belöle, akkor is muszáj legyen számolnia | |
public final CounterClass() { | |
CounterClass.counter++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Vector { | |
public final double x; | |
public final double y; | |
public Vector() { | |
this(0, 0); | |
} | |
public Vector(double x) { | |
this(x, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ./strings.js */ | |
/* @flow */ | |
'use strict' | |
import English from './translations/en' | |
import Hungarian from './translations/hu' | |
export const Languages = { | |
EN: 'en', |
NewerOlder