/* package whatever; // don't place package name! */
import java.util.* ;
import java.lang.* ;
import java.io.* ;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
System .
out .
println ( "Sou o método main" ) ; new Filha( ) ;
System .
out .
println ( "Sou o método main de novo" ) ; }
}
class Pai{
static { System .
out .
println ( "Sou um membro estático da classe pai" ) ; }
public Pai
( ) { System .
out .
println ( "Sou o construtor da classe pai." ) ; }
{ System .
out .
println ( "Sou um membro de estância da classe pai" ) ; } }
class Filha extends Pai{
{ System .
out .
println ( "Sou um membro de estância da classe filha" ) ; }
public Filha
( ) { System .
out .
println ( "Sou construtor da classe filha" ) ; }
static { System .
out .
println ( "Sou um membro estático da classe filha" ) ; }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCgkKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN5c3RlbS5vdXQucHJpbnRsbigiU291IG8gbcOpdG9kbyBtYWluIik7CgkJbmV3IEZpbGhhKCk7CglTeXN0ZW0ub3V0LnByaW50bG4oIlNvdSBvIG3DqXRvZG8gbWFpbiBkZSBub3ZvIik7Cgl9Cn0KCgljbGFzcyBQYWl7CgkJCgkJc3RhdGljIHtTeXN0ZW0ub3V0LnByaW50bG4oIlNvdSB1bSBtZW1icm8gZXN0w6F0aWNvIGRhIGNsYXNzZSBwYWkiKTt9CgkJCgkJcHVibGljIFBhaSgpe1N5c3RlbS5vdXQucHJpbnRsbigiU291IG8gY29u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