Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

If you are executing these statements in commandobject. Select * from table1; select * from table2? How you will deal result set? 42. How do you sort a dataset.

0 Answers  


Explain me what is a design pattern and what is it for?

0 Answers  


What are multicast delegates?

0 Answers  


Explain how to produce an assembly?

0 Answers  


What is Event Bubbling in .NET?

0 Answers   Viscus Infotech,


What is Polymorphism? How does VB.NET/C# achieve polymorphism?

0 Answers  


why .net does not support multiple inheritance?

2 Answers   Microsoft,


What is exception handling?

1 Answers   Amazon,


Why do we use the “using” statement?

0 Answers  


What is a formatter?

2 Answers   Infosys, TCS,


is c#.net supports multiple inheritance?

10 Answers  


What tools is used to develop .NET applications?

0 Answers  


Categories