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 the difference between static page and dynamic page?

916


What are pdbs?

1027


What does il do?

918


Compare & contrast rich client (smart clients or windows-based) & browser-based web application

917


Explain assemblies in .net?

1030


What is value type and refernce type in .net?

1005


What is the difference between boxing and unboxing?

909


Explain the difference between vb and vb.net?

998


Why do we use the “using” statement?

967


What is view state in .net?

969


When should I use .net core?

1036


which methos do you invoke on the dataadapter control to load your generated dataset with data?

1001


When a Static Constructor called in .NET?

1021


What is the difference between user control an custom control? Advantages/disadvantages?

974


Tell us what is the difference between struct and class?

1034