What is function overriding?
Answer / sudar
base class method they can used to contain same function and arguments of subclass.
| Is This Answer Correct ? | 1 Yes | 2 No |
Explain class invariant.
How do you compile the source code with your compiler?
what kind of projects are suitable for c and c++
You want to link a c++ program to c functions. How would you do it?
How many types of classes are there in c++?
sir i want to study the c++ course but ino what is the qualification and the study methode please reply more details in c++
Explain the use of this pointer?
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData
List the advantages of inheritance.
What is an incomplete type?
Why main function is special in c++?
Can a constructor be private?