Home
(current)
About
Tutorial
Technologies
C#
Deep Learning
Statistics for AIML
Natural Language Processing
Machine Learning
SQL -Structured Query Language
Python
Ethical Hacking
Placement Preparation
Quantitative Aptitude
View All Tutorial
Quiz
C#
SQL -Structured Query Language
Quantitative Aptitude
Java
View All Quiz Course
Q & A
C#
Quantitative Aptitude
Java
View All Q & A course
Programs
Articles
Identity And Access Management
Artificial Intelligence & Machine Learning Project
How to publish your local website on github pages with a custom domain name?
How to download and install Xampp on Window Operating System ?
How To Download And Install MySql Workbench
How to install Pycharm ?
How to install Python ?
How to download and install Visual Studio IDE taking an example of C# (C Sharp)
View All Post
Tools
Program Compiler
Sql Compiler
Replace Multiple Text
Meta Data From Multiple Url
Contact
User
Login
Register
FRESHER BELL ALL LANGUAGE ONLINE COMPILER
Java Hierarchical Inheritance Example
Languages
Java
C
C-99
C++
C++ 14
C++ 17
PHP
Perl
Python 2
Python 3
Ruby
Go Lang
Scala
Bash Shell
SQL
Pascal
C#
VB.NET
Haskell
Objective C
Swift
Groovy
Fortran
Brainf**k
Lua
TCL
Hack
Rust
D
Ada
R Language
Free Basic
Theme
github
xcode
ambiance
monokai
chaos
chrome
Program
class Bird{ //Parent Class String name3="Bird"; } class Crow extends Bird{ //Child Class 2 String name2="Crow"; } class Parrot extends Bird{ //Child Class1 String name1="Parrot"; } public class HierarchicalInheritance{ public static void main(String args[]){ Parrot p=new Parrot(); System.out.println(p.name1+" is "+p.name3); //System.out.println(p.name2+" is "+p.name3); this line will give error: cannot find symbol name2 } }
Run
Clear
Input
Output
Powered By Fresher Bell™
Similar Program
#
Program
Language
1
Write a program to find odd number from student roll number
Java
2
Java program to check whether the user input is armstrong number or not
Java
3
Java Siingle Level Inheritance Example
Java
4
Write a java program to determine whether a given number is a Harshad number
Java
5
Write a java program to find summation of even numbers in the array
Java
6
Alternate Method 2 :Write a program to find anagram or two words of same letter
Java
7
Alternate Method 1 :Write a program to find anagram or two words of same letter
Java
8
Java Inheritance Example
Java
9
Java program to find the element in the array
Java
10
Write a program to find anagram or two words of same letter
Java
11
Write a program to count of uppercase and lowercase and their difference
Java
12
Java program to convert binary to decimal
Java
13
Write a program to find time using battery capacity and changing current value
Java
14
Java Left Shift Operator Program
Java
15
Java program to check whether the user input is leap year or not
Java
16
Write a java program to calculate product of count of uppercase and lowercase letters
Java
17
Java Do While Loop Example 2
Java
18
Java For Each Loop Example
Java
19
Java program to generate right angled triangle or half pyramid using '*' and for loop
Java
20
Write a program to find the score of repeating words/ word repetition
Java
#
Program
Language
Copyright © 2020
Inovatik
- All rights reserved