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
write a c++ code to implement use of a constructor

Automatic Variables Automatic variables are variable which are explained within the functions. They lose their value when the function terminates. It can be accessed only in th

Scope Resolution operator: The scope resolution operator: : is used to access global variable in the inner block. When global and local variable are identical name the scope re

padovan series with words

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome


Define the Char Data Type of C Language? The char defines characters. The char type will usually require only 1 byte of internal storage. Every char type has an equivalent inte

Problem Write a program in C++ to read N numbers in an array, the user should be able to search a particular number in the array using sequential search algorithm. Writing a

Rahul is a newbie to the programming and while learning the programming language he came to know the following rules: · Each program must start with ''{'' and end with '

Need Payment Gateway Integration Expert Project Description: I am seeking for expert payment gateway integration. You must have done or have experience with integrating me