Described overriding?, C/C++ Programming

In order to override a method, a subclass of the class which originally declared the method have to declare a method along with the same name, return type (or a subclass of that return type), & same parameter list.

The definition of the method overriding is following:

  • Must have same data type.
  • Must have same method name.
  • Must have same argument list.

Overriding a method refer that replacing a method functionality in child class. In order to imply overriding functionality we require parent & child classes. In the child class you described the same method signature as defined in the parent class.

 

Posted Date: 3/16/2013 3:01:23 AM | Location : United States







Related Discussions:- Described overriding?, Assignment Help, Ask Question on Described overriding?, Get Answer, Expert's Help, Described overriding? Discussions

Write discussion on Described overriding?
Your posts are moderated
Related Questions
Question 1 Describe the theory behind class templates and function templates along with relevant programming examples Question 2 With the help of suitable programming example

how do i write a c++ program that will input a number and output its factorial using the while loop

What if I cannot wrap the local in an artificial block? need help on Artificial Block in c++.

It is a feature in C++ to reduce name collisions in the global name space. This namespace keyword assigns a separate name to a library that allows other libraries to use the simila

Write a program to calculate the average of ten numbers       #include stdio.h     /* Only this header is needed since only IO are used */     void main()     {          char

Q-What happens while a function throws an exception which was not specified through an exception specification for this function? A: Unexpected() is called, which, by default, w

I. COURSE DESCRIPTION Develops a working knowledge of object-oriented concepts in areas of classes, inheritance, data structures, error handling, templates and file processing.

Implementing files in c++

Why many companies are switching their current business language to PHP? Where PHP basically used? PHP is rapidly gaining popularity and numerous companies are switching their

how to explain working of bus connection