Answer Posted / 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 |
Post New Answer View All Answers
What does regex mean?
Which collection allows duplicate values in java?
How do you print array in java?
Where import statement is used in a java program?
What is the current version of java?
What are different data structures in java?
What is a file pointer?
What is empty string literal in java?
What do you understand by casting in java language?
What do you mean by inner class in java? Explain
Why hashcode is used in java?
Which collections are thread safe in java?
What is a class reference?
Why string is immutable or final in java
How many threads does a core java have?