Explain virtual functions in C++.
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• A virtual function is a member function that can be overridden in derived classes. Declared with the virtual keyword in the base class, enabling runtime polymorphism.
| Is This Answer Correct ? | 0 Yes | 0 No |
• A virtual function is a member function that can be overridden in derived classes. Declared with the virtual keyword in the base class, enabling runtime polymorphism.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• A virtual function is a member function that can be overridden in derived classes. Declared with the virtual keyword in the base class, enabling runtime polymorphism.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between a baller and a reference in C++?
There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.
Which is most difficult programming language?
In a function declaration, what does extern mean?
What are punctuators in c++?
How do I open binary files?
What is pointer in c++ with example?
What is a c++ class?
Should I learn c or c++ or c#?
How do you flush std cout?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
throw Can constructors exceptions?