❑ It must start with an uppercase letter.
❑ The convention is to start with an uppercase letter.
The convention is to start with an uppercase letter.
❑ They must be the same name as the class name.
❑ They can be any name, just like other methods.
Constructor must be same name as class name
❑ void
❑ Object
❑ The class name
❑ A constructor does not have a return type.
A constructor does not have a return type
❑ no parameter.
❑ one parameter, of the same type as the corresponding field.
one parameter, of the same type as the corresponding field.
❑ it can be accessed directly from any class.
❑ it can be accessed directly only from inside its class.
it can be accessed directly from inside its class
❑ Instance variables are private and methods are private.
❑ Instance variables are private and methods are public.
❑ Instance variables are public and methods are private.
❑ Instance variables are public and methods are public.
Instance variables are private and methods are public .
❑ instance variables of a class.
❑ used to access and modify field variables of a class from outside the class.
❑ constructor methods.
used to access and modify field variables of a class from outside the class
❑ no parameter.
❑ one parameter, of the same type as the corresponding field.
no parameter
❑ are void methods.
❑ return the same type as the corresponding field.
return the same type as the corresponding field.
❑ return a reference to this object.
❑ return the same type as the corresponding field.
return a reference to this object.
❑ static
❑ final
❑ constant
❑ static
❑ static
❑ final
❑ class
static