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

With these events, why wouldn't microsoft combine invalidate and paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?

1002


What is the difference between reference type and value type?

939


What is WSDL? Explain its architecture?

1201


Explain about .net assemblies?

1048


What are the different types of Classes in .NET?

1096


Please explain what do the terms “boxing” and “unboxing” mean?

1021


What is meant by globalization and localization?

1055


What is the difference between server.transfer and response.redirect? Why?

1053


What is the base class of Button control in .NET?

1091


Please explain is the jit an interpreter?

1168


What is new in .net core?

934


How to get the number after decimal point in .net?

1016


What is operator overloading in .net?

1047


What are the collections you've used?

1065


What are the main components in .net?

1025