what is virtual function?
Answer Posted / sandeep kumar
a virtual function is a member function that you expect to be redefined in derived class when you refer to a derived class object using a pointer or a reference to the base class, you can call a virtual function for the object and executes the derived class version of the function
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Is this job good for future? can do this job post grduate student?
Templates mean
What is a superclass in oop?
What is class and object with example?
How Do you Code Composition and Aggregation in C++ ?
What are classes oop?
Explain virtual inheritance?
What is object and class in oops?
What is this pointer in oop?
This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.
Write a program to reverse a string using recursive function?
What is polymorphism and example?
Which method cannot be overridden?
program for insertion ,deletion,sorting in double link list
What is encapsulation in oop?