WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

Abstract Classes | Loop and Break

Abstract Classes

There are situations in which you will want to define a superclass that declares the structure of a given abstraction without providing a complete implementation of every method. For implementing this Java uses abstract classes. Below example shows the use of abstract classes. It’s nice to say that suppose every car is equipped with some safety features that are imposed. then we can design our class same as below :

Example

//class should be declared abstract if any othe the method is abstract
abstract class CarVehicle { 
	int cost;

	abstract void SafetyBelt(); // abstract method1
	abstract void AirBags(); // abstract method1
}

//extend abstract class
public class AbstractExample extends CarVehicle { 
	public static void main(String[] args) {
		AbstractExample ab = new AbstractExample();
		ab.cost = 50000;
		ab.SafetyBelt();
		ab.AirBags();
	}

	// compulsory to override both abstract methods in derived class, otherwise it gives error
	void SafetyBelt() {
		System.out.println("4 seat belts");
	}

	void AirBags() {
		System.out.println("5 air bags");
	}
}

Output

4 seat belts
5 air bags
Share

You may also like...