GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  C++
Go To First  |  Previous Question  |  Next Question 
 C++  |  Question 167 of 203    Print  
Method Overriding
What's the Method Overriding and what's the difference between Method Overloading and Method Overriding.


  
Total Answers and Comments: 1 Last Update: July 15, 2008     Asked by: razahaq 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: arun_goel3
 
defining a new function with same name but signature is different is known as method oveloading.
Define a new function with same name ( as in base class) in derived class is known as method override. In the derived class, base class defined method is hide.

Above answer was rated as good by the following members:
santhosh.kanchanapally
July 15, 2008 01:04:25   #1  
arun_goel3 Member Since: July 2008   Contribution: 2    

RE: Method Overriding
defining a new function with same name but signature is different is known as method oveloading.
Define a new function with same name ( as in base class) in derived class is known as method override. In the derived class base class defined method is hide.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

"Poly" means "many" and "morph" means "form". Polymorphism is the ability of an object (or reference) to assume (be replaced by) or become many different forms 
Latest Answer : C++ enables polymorphism - The ability of obejcts of different classes related by inheritance respond differntly to the same function call. ...

Latest Answer : All the above answers are right this is one more refinement.overridding is runtime polymorphism while overloading is compile time polymorphism.  ...
Read Answers (3) | Asked by : suji

Latest Answer : Function Overriding: Redefining the behavior (function body) of a virtual function from a base class, in a child class. For example,class MyBaseClass{    public:        virtual int MyVirtualFunc(int x, ...
Read Answers (17) | Asked by : yogendra singh rajavat

I want C++ code forCreate method inside Principal mentor class called assignAssociates to assign associate mentors from faculty.txt to a course. Create a file named associates.txt store CourseId,FacultyId,Role. Overload assignAssociates function with arguments. Overloading Method1 with three arguments courseId,FacultyId,Role. Overloading Method2 with two arguments courseId,FacultyId. ( Section 6.17 from chapter 6. ) Overload methods compactly and conveniently by using function templates. Create

What's the Method Overriding and what's the difference between Method Overloading and Method Overriding. 
Latest Answer : defining a new function with same name but signature is different is known as method oveloading.Define a new function with same name ( as in base class) in derived class is known as method override. In the derived class, base class defined method ...
Read Answers (1) | Asked by : razahaq

Which of the following statements about overloading/overriding is FALSE?A. Overloading is a method that allows the definition of multiple member functions with the same name but different signatures.B. 
Latest Answer : D should the wrong.Run time polymorphism is based on overriding (based on virtuval function). ...


 Sponsored Links

 
Related Articles

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

What is Common Data Modeling Method

Common Data Modeling is one of the core considerations when setting up a business data warehouse. Any serious company wanting to have a data warehouse will have to be first serious about data models. Building a data model takes time and it is not unusual for companies to spend two to five years just
 

SQL Programming

SQL Programming Overview Anybody who has done something for a long time has probably wanted to change how things work at some point or another. A worker at a mill might have found a more efficient way of cutting logs, or a mathematics teacher might have had a hand in changing a school’s al
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

WinRunner Programming Concepts

If you want to create WinRunner scripts that are highly efficient, there are important programming concepts that you will want to become familiar with. Understanding these concepts will provide you with a large number of key benefits. In addition to understanding these concepts, you must also learn
 

Programming Languages Certification

IT Certification programs have several options that will offer you the best knowledge.  By learning everything that you need to know about information technology you will be able to open new doors to your career and personal business desires.  IT Certification offers several vari
 

JavaScript Window Object Open Method Part 2

JavaScript Window Object Open Method Part 2 In this JavaScript tutorial you will learn about JavaScript Window Object Open Method features of window object open method scrollbars status titlebar toolbar top width innerHeight innerWidth outerHeight outerWidth and hotkeys mosgoogle center scrollbars S
 

JavaScript Window Object Open Method

JavaScript Window Object Open Method In this JavaScript tutorial you will learn about JavaScript Window Object Open Method features of window object open method channelmode directories dependent fullscreen screenX screenY height left location menubar resizable alwaysLowered alwaysRaised mosgoogle ce
 

Neuro-linguistic Programming Methods

Neuro linguistic Programming Methods There are several methods used for performing Neuro linguistic Programming on an individual for obtaining insights into the psyche of the person in order to correct to modify certain patterns of behavior These techniques are also used for Neuro linguistic trainin
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape