Difference between Overloading and Overriding?

Answer Posted / kailash joshi

overloading : class a { volume(int a,int b)
}
class b { public volume(int a,int b,int c)
}
"different signatures"

overriding : class a { public volume(int a,int b)
}
class b { public volume(int a,int b,int c)
}
"same signatures";

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by a pure virtual member function?

549


Is overriding possible in c++?

578


Explain public, protected, private in c++?

567


What methods can be overridden in java?

676


Explain method of creating object in C++ ?

597






Differentiate between realloc() and free().

600


What is the use of 'using' declaration in c++?

633


What is the difference between cin.read() and cin.getline()?

563


What is the use of pointer in c++ with example?

563


What is the main use of c++?

557


What does override mean in c++?

590


What is the full form of c++?

621


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

3704


What is recursion?

662


can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is somewhere #include #include #include using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<

1643