What is constructor and virtual function?
Answers were Sorted based on User's Feedback
Answer / raj
constructor is special member function whose purpose to
initialize the class member variables.
| Is This Answer Correct ? | 10 Yes | 0 No |
Constructor is a special kind of method used to initialize
an object.
| Is This Answer Correct ? | 11 Yes | 2 No |
Answer / lakshmi
Constructor is the function that has class name as its
function name with no return type and is used to initialize
the data members of the class.
virtual function is the function that can be overriden in
the derived class. it uses virtual keyword. it may or may
not be overloaded in derived class.
abstract function must be overridden in the derived class
inorder to create the instance.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ravikiran(aptech mumbai)
constructor name is of the class name which has no return
type and is used o initialize during instantiation of class.
virtual function is the function called t runtime
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / rohit saini
Contructor is the special type of method which is used
initialize the data member the class
| Is This Answer Correct ? | 1 Yes | 0 No |
What is hotjava?
What is the maximum size of hashmap in java?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
By what default value is an object reference declared as an instance variable?
What do you understand by abstract classes?
Explain the Propertie sof class?
Is treeset sorted in java?
can we override the main() method in java????
3 Answers Vimukti Technologies,
Can you run the product development on all operating systems ?
what is translator and it types
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
State the difference between strings and arrays.