abstraction in java
Abstraction is nothing but the quality of dealing with ideas rather than
events. It basically deals with hiding the internal details and showing
the essential things to the user.
abstraction in java
Abstraction is nothing but the quality of dealing with ideas rather than
events. It basically deals with hiding the internal details and showing
the essential things to the user.
abstract class example in java
//abstract parent class
abstract class Animal{
//abstract method
public abstract void sound();
}
//Dog class extends Animal class
public class Dog extends Animal{
public void sound(){
System.out.println("Woof");
}
public static void main(String args[]){
Animal obj = new Dog();
obj.sound();
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us