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 |
What is assemblies in .net?
What is .net and why it is used?
Difference between VB.NET and C#. Which is faster ?
Can you configure a .NET Remoting object via XML file?
What is .net3.5?
what is the meaning silverligt control
What is the root class in .net?
What are the fundamental objects in ADO.NET?
What is singlecall activation mode used for in .net?
Explain me how does linq work?
What does stateless mean?
1 mor thing guyz....can i go for C# directly without C++ /JAVA knowledge for dot net ..???