class pen
{
String color ;
String type;
public void write()
{
System.out.println("Write Something");
}
public void Color()
{
System.out.println(this.color);
}
public void Type()
{
System.out.println(this.type);
}
}
public class oops1
{
public static void main(String args[])
{
pen p1 = new pen();
p1.write();
p1.color="Green";
p1.type="Ball pen";
p1.Color();
p1.Type();
pen p2 = new pen();
p2.color="Black";
p2.type="Gel pen";
p2.Color();
p2.Type();
}
}