Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


What is constructor and virtual function?

Answers were Sorted based on User's Feedback



What is constructor and virtual function?..

Answer / raj

constructor is special member function whose purpose to
initialize the class member variables.

Is This Answer Correct ?    10 Yes 0 No

What is constructor and virtual function?..

Answer / niranjanravi

Constructor is a special kind of method used to initialize
an object.

Is This Answer Correct ?    11 Yes 2 No

What is constructor and virtual function?..

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

What is constructor and virtual function?..

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

What is constructor and virtual function?..

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

Post New Answer



More Core Java Interview Questions

What is serialversionuid?

0 Answers  


What does yield method of the thread class do?

0 Answers  


How do you add an arraylist to an array in java?

0 Answers  


Can a class be subclass of itself?

4 Answers  


What are the benefits of immutable objects?

0 Answers  






What is command line argument

0 Answers   TCS,


what is the difference between statis block and static variable

7 Answers  


How is final different from finally and finalize?

0 Answers  


What do you mean by ternary operator in java?

0 Answers  


Difference between == and .equals() ?

0 Answers  


How can you add and remove nodes in jtree?

0 Answers  


Why java is said to be pass-by-value ?

0 Answers  






Categories