name1 class Bug$B
name2 class Bug$B
1. Preceded by "class" in Java, not in C++
2. Virtual in methods, not virtual in field initializers in C++. My expectation is it should be consistent, and virtual, as in Java.