Home Answers Viewqa Development-process Why setter and getter methods

 
 


Rajendra
Why setter and getter methods
1 Answer(s)      3 years and 6 months ago
Posted in : Development process

View Answers

November 30, 2009 at 4:54 PM


Hi Friend,

Getter and setter methods are used to retrieve and manipulate private variables in a different class. The getter methods retrieves the attribute of the same name and setter methods allows you to set the value of the attribute.

Thanks









Related Pages:
Why setter and getter methods - Development process
Why setter and getter methods  Every field has setter and getter methods.what is happening in this methods.  Hi Friend, Getter... in a different class. The getter methods retrieves the attribute of the same name and setter
why and where we use setter and getter methods in java, please give me one example program.....
why and where we use setter and getter methods in java, please give me one example program.....  why and where we use setter and getter methods in java, please give me one example program
Setter injection in Spring
Setter injection in Spring  What is Setter injection in Spring ?   The Spring IoC container supports setter injection, which is the preferred method of dependency injection in Spring. Setter injection uses the set
Java Swing Set And Get Values
and get values using setter and getter methods. This example explains you how... and their setter and getter methods and a display method which displays the short..., add1, add2, cityName, pincode and their setter and getter methods
why we use constructors instead of methods in java?
why we use constructors instead of methods in java?   why we use constructors instead of methods in java
why we use struts framework instead of springs
and extendible with Plugins like Convention Plugin REST Plugin getter/setter...why we use struts framework instead of springs  why we use struts framework instead of springs    It depends upon your application
Struts Login Validation. In This code setter of login page is called only one time again it doesnt call it. Why..?
Struts Login Validation. In This code setter of login page is called only one time again it doesnt call it. Why..?  **struts.xml** <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software
static methods
static methods  why static methods cannot read or write the instance variables
Agile methods
Agile methods   Why use Agile methods?   This methods focus on shorter iterations, in which the software is brought to a releasable level of quality fairly often, usually somewhere between weekly and monthly. Short
Why Abstract Class?
Why Abstract Class?  What is the use of Abstract Class if it has Zero Abstract methods
Why Abstract Class?
Why Abstract Class?  What is the use of Abstract Class if it has Zero Abstract methods
<jsp:useBean> in JSP
:useBean>. Bean is a reusable component which mostly contains the setter and getter values, we also called it as mutators. The <jsp:useBean> is a standard
could not find a getter for id in contact class
could not find a getter for id in contact class   could not find a getter for id in contact class
ServletResponse methods Servlet 3.0
provides setter and getter methods to set and get the appropriate value. Here I am giving commonly used methods of ServletResponse interface. These are as follows...ServletResponse methods - Servlet 3.0 In this tutorial you will learn about
methods in the applet - Applet
methods in the applet  import java.awt.*; import java.applet.Applet.... Question 1. Why is it that without defining the init() and the start() method... provides the Applet class with default implementation for all the applet methods
methods
methods  PrintStream class has two formatting methods,what
methods
methods  PrintStream class has two formatting methods,what
methods
methods  PrintStream class has two formatting methods,what
some methods not working on firefox and chrome
some methods not working on firefox and chrome  why some of javascript methods are not working on firefox and chrome? ex : createElement(). Please help me to solve this problem. adv thanx
hibernate pojo setter method problem
hibernate pojo setter method problem  how to pass a date type variable to a setter method in hibernate pojo class? //this is my pojo class import java.util.*; public class Employee { private String empname; private int
Why the wait(),notify() should not avaialable in Thread class.
Why the wait(),notify() should not avaialable in Thread class.  wait(),notify(),notifyall() is available in Object class.We are using those method in Threading then why don't they put the 3 methods in thread class
Static/Class methods
Java NotesStatic/Class methods There are two types of methods. Instance methods are associated with an object and use the instance variables of that object. This is the default. Static methods use no instance
Spring Setter Injection
Basic Setter Injection Here in this example you will see another different type of injection known as setter injection which is the preferred method dependency injection in Spring. The convention of writing the setter method
Object-Oriented Implementation of Numerical Methods - Java Tutorials
Object-Oriented Implementation of Numerical Methods 2002-04-01 The Java... of Numerical Methods Author: Dr. Heinz M. Kabutz If you are reading... Implementation of Numerical Methods by Dr. Didier Besset As promised, this week I am
I invoke the ResultSet methods afterLast and beforeFirst when the method next works.
I invoke the ResultSet methods afterLast and beforeFirst when the method next works.  Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works
Java: Why aren't Java GUIs easier?
-- there are a huge number of GUI classes, a huge number of methods that can.... Too many methods. There are over 400 methods in the JTextField class... only TWO JTextField methods. Solution. I'll tell you which
Methods - Introduction
. Why use methods? For reusable code If you need... for solving your big problem by calling on other methods to solve the smaller parts of the problem. And these methods for solving
Why spring?
Why spring?  Why do we need to learn Spring? and where can we use it thanks
Why NSMutableDictionary
Why NSMutableDictionary  Why NSMutableDictionary is used for?   NSMutableDictionary inherits from NSDictionary class, which is used to manage mutable associations of keys and values. Actually, NSMutableDictionary
Methods of HttpServlet
Methods of HttpServlet  What are methods of HttpServlet
EJB, Enterprise java bean- Why EJB (Enterprise Java Beans)?
Why EJB (Enterprise Java Beans)?   ... implement nor extend any special classes and we need not call any special methods... this in an RMI environment, we would have to write our own search methods
Why request.getParameter(
Why request.getParameter(  Hi all, I want to to do upload file in my folder and that time i want to store date in my MySQL Database. Here...="POST"> why it happen? Anybody plz help me.. i want use it my project...plz
why this can't
why this can't  import java.util.*; class Dash{ public static void main(String args[]){ int x0=100; int[] x1=new int[3]; int[][] x2=new int[3][3]; int[][][] x3=new int[3][3][3
Why this is not working...?
Why this is not working...?  import java.util.*; public class Family { int size_of_family=0; public Person[] members=new Person[size_of_family]; Person d = new Person(); public Family (int size_of_family){ members = new
why jre in jdk
why jre in jdk  why jre in jdk
native methods
native methods  what is native methods in java?   A native method is a method that is implemented in a language other than Java. The Java native method is a great way to gain and merge the power of C or C++ programming
Why to use Web Services
Why to use Web Services         Why to use Web Services... to resort the methods.    How to use
Why it called Struts?
Why it called Struts?  Why it called Struts
why the php is open source?
why the php is open source?  why the php is open source
why using static keyword
why using static keyword  why using static keyword
why not float main?
why not float main?  why should the main be int or void?why cant it be float or char? why int main()?why not float main()?or char main
why not float main?
why not float main?  why should the main be int or void?why cant it be float or char? why int main()?why not float main()?or char main
PHP Mutator Accessor
PHP Mutator and Accessor Methods: In object-oriented programming, the mutator... function. On the other hand accessor methods are used to get the values of the private data member. These methods can be implemented on non-object-oriented
Why Ajax for web?
Why Ajax for web?  Hi, Why Ajax is so important in web applications development? Thanks

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.