Find the Error. interface DAO{ public double getMax(); public abstract double getAverage(); } abstract class Human{ public abstract void study(); public void showValue(Number i){ System.out.println(i); } } class B extends Human implements DAO{ public void study() { System.out.println("Study OOP"); } public double getMax() { return 30; } public double getAverage() { return 14.5; } @Override public void getAccess() { System.out.println("233"); } } public class AbstractionAndInterface { public static void main(String[] args) { Human h = new B(); double res = h.getMax(); System.out.println(res); B b = new B(); System.out.println(b.getAverage()); b.getAccess(); } } public interface DAO2 { public void getAccess(); public abstract void printOutput(); }
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
Find the Error.
interface DAO{ public double getMax(); abstract class Human{ public abstract void study(); class B extends Human implements DAO{ public void study() { @Override public class AbstractionAndInterface { |
public interface DAO2 { public abstract void printOutput(); |
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images