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

does java support pointers?

566


Why do we need singleton class?

549


What exactly is java?

517


What is the method overriding?

621


What are different types of expressions?

554






What is the preferred size of a component in java programming?

539


What is threaded programming and when is it used? : Java thread

533


What is the final method?

601


1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?

3791


Can we call a non-static method from inside a static method?

561


What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

553


Is minecraft java edition free?

578


What two classes are used to read data only?

640


Is java hard to learn?

463


What are pass by reference and pass by value?

527