What do you understand by state of an object? Explain with an example.

Question :

What do you understand by state of an object? Explain with an example.

The state of an object is the particular condition it is in. For example, a lamp can be on or off. The lamp’s switch (methods) turn lamp on and turn lamp off are used to access the state of the lamp. 


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad