The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
naved momin wrote:
public static void main(String args)
dog d = new dog();
d.size = 40;
d.name = "savvy";
public int size ;
public String name;
public String color;
public void bark()
System.out.print(" bow ! bow !");
the output is just bow ! bow !
but i m calling a state of that object dog which is name and size ..i m not getting that in output ...which part is wrong ?
naved momin wrote:problem solved