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 |
Can "this" be used within a static method?
How you apply a theme in whole application in .Net?
What is difference between system.string and system.stringbuilder classes?
Explain how does assembly versioning work?
Please explain what is a delegate?
What are the difference bbetween value type & reference types ? Example from .net. Integer & struct are value types or reference types in .net?
Explain me what is encapsulation?
What are .net functions?
Why is .net used?
What is model-view -controller Architecture?
i m fresher,hav SQL knowledge but in my ofc. i hav to work on dotnet. so plz tell me how to learn it,? from where to stat? i hav C prog. knowledge, ASP.net
What is DTS and explain the purpose of it?