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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about the features and elements present in Visual studio.NET IDE?

1075


Explain what do the terms “boxing” and “unboxing” mean?

998


Is .net core stable?

911


What is difference between .net core and .net standard?

921


How do you trigger the paint event in system.drawing?

993


Is it true that objects don't always get destroyed immediately when the last reference goes away?

1010


I'm having some trouble with cas. How can I troubleshoot the problem?

1012


What are an object and a class?

1103


Explain what is an anonymous method and how is it different from a lambda expression?

961


What are the types of assemblies in .net?

1098


Difference between class and interface in .net?

1049


Do you know what is .net standard?

1103


What's wrong with a line like this? Datetime.parse(mystring);

1016


How anonymous method is different from a lambda expression?

1004


Explain me how does linq work?

1147