IT. Expert System.

Java basics

overridding


If subclass (child class) has the same method as declared in the parent class, it is known as method overriding. In other words, If subclass provides the specific implementation of the method that has been provided by one of its parent class, it is known as Method Overriding.

Syntax:
no such syntax exists


Example:

class Vehicle{  
    void run(){System.out.println("Vehicle is running");}  
    }  
    class Bike2 extends Vehicle{  
    void run(){System.out.println("Bike is running safely");}  
      
    public static void main(String args[]){  
    Bike2 obj = new Bike2();  
    obj.run();  
    }


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 104 / 158777627. Delta: 0.00314 с