What is constructor and virtual function?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State the merge-sort principle and its time complexity.

573


Can you explain inner class.

590


Are arrays primitive data types?

638


What is the collections api in java programming?

555


What is append function?

570






How do you reverse a word in java?

527


What are the ways in which a thread can enter the waiting state?

515


What is a values collection view ?

685


explain copyonwritearraylist and when do we use copyonwritearraylist?

543


What is java argument list?

520


How to obtain a performance profile of java program

545


What are disadvantages of java?

519


What is a lambda expression ? What's its use ?

563


Tell us something about an iterator.

548


Why multiple inheritance is not supported by java?

514