Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Create an instance of Class B:
- B b=new B();
- b.method();
- or define an static method in Class B:
- class B
- {
- static void staticMethod();
- }
- and call it like this:
- B.staticMethod();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement