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
gsm features
Write a java program to print the subsets of a string
WHAT IS THE PROPER LOCATION OF SAMPLE POINT OF LPG SPHERE TANK?
what is buffer solution?
THESE POSTS ARE FOR THE DURATION OF FIVE YEARS. AFTER COMPLETION OF FIVE YEARS, THE PERSONNEL POSTED AGAINST THESE POSTS ARE LIKELY TO BE CONTINUED IN NIC. CAN Any body say that what it will be happened after 5 years? does they through us out from NIC? Is it a temporary job of 5 years is the probation period?
Given a number (N), program to check whether its binary form has periodic or not
Write the fetch cycle and execute cycle for following instructions:JMPNZ (jump to the given address if the accumulator not equal to zero) RET(return from a subroutine) ADB (add the contents of register B to the accumulator and save result in the accumulator).
how can i implement a program of polynomial adding,multiplication,through c language???
explain various object oriented programming fetures
What is the difference between tcp/ip protocol and IP protocol?
how you judge that your interview go good????
why view is created in database
if u have question papers/sample papers of any of PSUs,plz send me at dinesh.pandey3@gmail.com
Please send me Sample papers OF National Informatics Centre (NIC) Vacency
Name a accredited or govt approved university which have 100% online engineering course