Saved Bookmarks
| 1. |
Observe the following class definition and answer the questions that follow:(i) Write statement to invoke Function 1.(ii) On Executing the above code , Statement 2 is giving an error explain. |
|
Answer» (i) print I (ii) The statement 2 is giving an error because __Systemdate is a private variable and hence cannot be printed outside the class. |
|