Code: interface Vehicle { public abstract void windows(); public abstract void ac(); } class Car implements Vehicle { pub...
Read More
63 Whenever we create object for sub class JVM only provides memory for sub class not for super class
Code: class A { int a = 111; int b = 222; } class B extends A { int c = 333; int d = 444; B() { System.out.printl...
Read More
Subscribe to:
Posts (Atom)