Home
Tutorials
Core Java
Introduction To Java
Java Evolution
Overview of Java
Constants, Variables and Data Types
Java Operators
Branching Statements
Looping Statements
Classes, Objects and Methods
Inheritance
Array, String and Vectors
Java Interfaces
Java Packages
Applet Programming
Graphics Programming
Advanced Java
Java AWT
Java Event Handling
Java File Handling
Java MultiThreading
Java Swing-I
Java Swing-II
Exception Handling
Socket Programming
Java Database
Java RMI
Java Servlets
Java Beans
Programms
Projects
Downloads
Contact
Java Programming
!doctype>
Method Overriding in Java
/* ======================================================= File Name : MethodOverriding.java WebSite : http://javaproglang.blogspot.in/ Facebook : https://www.facebook.com/AdvanceJavaProgramming Twitter : https://twitter.com/bintuchaudhary Created By : Bintu Chaudhary ======================================================= */ import java.io.*; class over { void show() { System.out.println("\n\tJava Programming"); } } class riding extends over { void show() { System.out.println("\n\tAdvance Java Programming"); } } class MethodOverriding { public static void main(String args[]) { riding obj=new riding(); obj.show(); } }
Output of "MethodOverriding.java"
Download Complete Program
-
Read more »
No comments:
Post a Comment
No comments:
Post a Comment