Answer:
overriding is defining a function in derived class with same name which is already exist in base class.
Explanation:
Override key word is used in DotNet for overriding .It differes from language to language.In c++ no keyword is required for overriding.
#include<iostream.h>
public class BaseClass
{
public :
void print(){
cout<<"print in base class";
}
}
public class DerivedClass : public BaseClass
{
public :
void print(){
cout<<"print in derived class";
}
}
void main(){
BaseClass b=new BaseClass();
b.print();
DerivedClass d=new DerivedClass();
d.print()
}
Your answer is True.
If this answer is incorrect, then i am sorry.
Any time you pass an argument to a method, the data type arguments must be assignment compatible with data type receiving parameter.
<span />
The European plug takes up 220 volts while the American one takes 110 volts.