Give an example for setter/ write-only methods



Give an example for setter/ write-only methods..

Answer / hrindows@gmail.com

// A write-only class in Java
public class Student{
//private data member
private String institute;
//setter method for institute
public void setInstitute (String institute)
{ this.institute=institute;
}
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

Difference between assembly manifest & metadata

2 Answers  


What is Application Domain?

1 Answers  


What are three common acronyms used in .net, and what do they stand for?

0 Answers  


As you know read-only variables and constants have many similarities, but what is at least one way that they differ?

0 Answers  


How to convert a .NET object into COM operabililty?

0 Answers   Petranics Solutions,






Explain the process of compilation in .NET?

0 Answers  


What is boxing?

3 Answers  


what is the use of "mustinherit" keyword?

2 Answers  


Explain about major components of the .NET framework.

1 Answers  


What is a web service in .net?

0 Answers  


How to spawn a thread?

0 Answers  


What are Sessions?

2 Answers   Deloitte,


Categories