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
how to create a flowchart? can you help me in my assignment about flowcharting ....


Project Description: We want to generate premium numbers for one of our application. What we need is: A program that generate 2, 3, 4, 5, 6, 7, 8 digits premium numbers

Abstraction is of the process of hiding unwanted details from the user

Question: (a) What is a function? Are functions needed when writing a C program? (b) State one of the advantages to the use of functions. (c) What do you meant by underst

Operator overloading - c++ program: Write a program in c to define operator overloading. class matrix{                   private :                 int x[2][2];

Introduction to I/O interfacing, discuss microcontrollers applications in industry. Detailed product design specifications that have sections on both hardware and software inclu

#decode the code

Create a program that asks the user for two integers which represent the numerator and denominator parts of fraction. Print out a simplification of the fraction. Example: Enter th

A:BinaryHeap.h ------------ #ifndef BINARY_HEAP_H_ #define BINARY_HEAP_H_ #include "dsexceptions.h" #include "vector.h" // BinaryHeap class // CONSTRUCTION: wi