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

It tells the compiler that a variable or a function exists, even if the compiler hasn't yet seen it in the file presently being compiled. This variable or function may be distinct

We need an E Commerce site likefifacointrader. you must have experience with that kind of work You have to show a sample of work like that site. Skills required are C Prog

We can combine more than one variable on the same line i.e.   float number1,number2,number3; etc Sometimes we want to mix the variable types used on the same line, this could

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec


C Program for SORTING OF NUMBERS   main() {           int a[20],i,j,temp,n;           clrscr();           printf("ENTER THE MAXIMUM LIMIT: ");           scan


Ask queByteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colo

in mobiles mumbers to alphabets