Java Programming Write a java program to implement method overriding | VCMIT by Music Lyrics - March 13, 2020 Method OverridingINPUTclass Human{ public void eat() { System.out.println("Human is eating"); }}class Boy extends Human{ public void eat(){ System.out.println("Boy is eating"); } public static void main( String args[]) { Boy obj = new Boy(); obj.eat(); }}OUTPUT Share Tweet Pin Share Tags : Java Programming Newer Post Older Post You May Also Like 0 Comments
0 Comments