Give an example program for Getter /read-only methods in JAVA
Read-only:
//A Read-only class in Java
public class Student{
//private data member
private String institute ="MKG";
//getter method for institute
public String getInstitute (){
return institute;
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell me about secure socket layer? How to make use of the technology?
State the differences between the dispose() and finalize().
How to load a user control dynamically in runtime?
Interop Services?
Explain why do we use the “using” statement?
What is a metadata in .net?
What are the different.net tools which you used in projects?
What are the similarities and difference between class and structure in .net?
Do I have any control over the garbage collection algorithm?
How is .net able to support multiple languages?
What is Atomicity?
is c#.net supports multiple inheritance?