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

What is javac in java?

548


What is difference between iterator and enumeration in java?

518


What is the largest data type in java?

502


What is thread safe in java?

539


How can we avoid including a header more than once?

600






How can we use primitive data types as objects?

550


Name container classes in java programming?

581


What do you mean by an interface in java?

562


Explain different types of wrapper classes in java?

587


Can we override private method?

547


When a byte datatype is used?

559


What is data type in java?

481


What is object-oriented paradigm?

606


Why string is not thread safe?

526


What are assembly attributes?

535