Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test
- {
- public static void main(String args[])
- {
- Car c = new Car();
- c.whoAmI();
- }
- }
- class Car
- {
- public String mark = "undefined";
- public void whoAmI()
- {
- System.out.println("I am " + mark);
- }
- }
Add Comment
Please, Sign In to add comment