mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
15 lines
316 B
Java
15 lines
316 B
Java
public final class Galaxy {
|
|
|
|
// This is the original constructor.
|
|
public Galaxy (double aMass, String aName) {
|
|
fMass = aMass;
|
|
fName = aName;
|
|
}
|
|
|
|
// This is the copy constructor.
|
|
public Galaxy(Galaxy aGalaxy) {
|
|
this(aGalaxy.getMass(), aGalaxy.getName());
|
|
}
|
|
|
|
// ...
|
|
} |