Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is constructor and virtual function?

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


Please Help Members By Posting Answers For Below Questions

What is meant by method?

1106


What is thread pool in java with example?

1004


What is super in java?

998


Is singleton thread safe in java?

988


What is a class in java?

1012


What is a for loop in java?

1046


When to use runnable interface vs thread class in java?

981


How will you communicate between two applets?

1170


What is array list in java?

1083


Explain importance of throws keyword in java?

981


What is polymorphism and what are the types of it?

993


What are the steps in the jdbc connection?

1025


How do you use substring in java?

1140


What is an example of a boolean?

1066


What is the buffer limit?

1029