What is constructor and virtual function?

Answer Posted / raj

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

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by hashing?

833


What do you mean by append?

717


What happens if we override private method?

723


extending thread class or implementing runnable interface. Which is better? : Java thread

773


What is extension method in java?

775


What does the “static” keyword mean?

798


What is floating data type?

740


Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?

841


Explain garbage collection in java?

726


How do you check if an arraylist is not empty?

764


Differentiate between class and structure.

800


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

833


How many decimal places is a double?

717


How do you sort data in java?

710


Can we declare an interface as final?

764