Leave a Reply 5

Your email address will not be published. Required fields are marked *


ana

ana

B is the correct answer

Snr DingDong

Snr DingDong

Answer is B.

count is a static variable.

There is only one copy of a static variable a class. So if “count” is changed by one object of that class. It also changes for all other objects of that class.

ramanes

ramanes

Thanks for your explanation.