Computer Science, asked by Tonnystark77, 7 months ago

What is the difference between getText() and setText()method?

Answers

Answered by KailashHarjo
4

The difference between the g-e-t Text() and set Text() method is given below:

  • Get Text() method is given as:-
  • get Text() method is used to recover (or retrieve) the text of a component like Text Field at the time of running.
  • e.g :   name.get Text().
  • Set Text() method is given as:
  • Set Text() method is used to change the  display text  of a component like a label, text field, or button  at run time
  • e.g   in.set Text(""+name).
Similar questions