Answer Posted / jeetesh
constructor is nothing but name of class name of the
constructor should be same
Main goal of constructor: is to initialize states of
an objects value or attributes values
while creating object to the class automatically
constructor will call
constructor in java:
1 name of constructor and name of class should be same
2 constructor it will call while
Creating object
3 constructor does not have return value
4 constructor cannot be final
5 constructors cannot be static if it is static means we
cannot create object to static
6 constructor cannot be inherit
7 constructor cannot be abstract
8 constructor first statement should be either super()
calling or this() calling
9 Overriding is not possible in case of constructor
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
write a program to reverse a string using recursive function without using str functions.
How to Shut-down the system through QTP Script?
in which website , i can able to get the electrical basics.?????????????
What a test plan contains
what are the various login options used in loadrunner tool to make a application performance testing
Which one is more efficient in terms of required memory space call-by-value or call-by-referance?
what is software engineer
Hii can you help me step by step procedure for transfering data in textfields into sql database .mdf(also help me how to create database .mdf file) file after creating submit button in asp.net/ c#?????
I want to prepare for PSU's bt i dont know how many PSU's are open for computer science students and what is the competition level for these. So if anybody knows this please guide me through this.
If I am in a room with 5 people and guess all their birthdays what is the probability of getting (only) one correct?
what are the simlerities between macro and subroutine
i need the placement paper of ford IT service...
pls send me rrb se(s&t)questions
today apptitude questions
i want questions only on code part like general logics in c and java