| 1. |
Explain About Class Variable And Global Variable? |
|
Answer» A CLASS variable STARTS with an @@ sign which is immediately followed by upper or lower case letter. You can also put some name characters after the LETTERS which stand to be a pure optional. A class variable can be shared AMONG all the objects of a class. A single copy of a class variable exists for each and every given class. A class variable starts with an @@ sign which is immediately followed by upper or lower case letter. You can also put some name characters after the letters which stand to be a pure optional. A class variable can be shared among all the objects of a class. A single copy of a class variable exists for each and every given class. |
|