Java/ J2EE, Oracle Adf Blog
Thursday, 12 February 2015
Final Method Inheritance
class
Bike{
final
void
run(){System.out.println(
"running..."
);}
}
class
Honda2
extends
Bike{
public
static
void
main(String args[]){
new
Honda2().run();
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment