first se these methods
setForeground(Color.cyan);
setBackground(Color.red);
these methods are defined in Component class like this
java.awt.Component
and we pass parameters of an other class this is very confusable for me that we pass class members as parameters to method of a different class, i mean setForeground(Color.cyan)
i defined in Component class and this method is pass parameters of different class how it is possible plz plz plz plz plz plz give me key concept about this.i will be very thankfull to all members of this forum and management.