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

Multilevel Inheritance | Loop and Break

Multilevel Inheritance

Conside the following code for multilevel inheritance example :

Example

class student {
	int rollno;
	String name;

	student(int r, String n) {
		rollno = r;
		name = n;
	}

	void dispdatas() {
		System.out.println("Rollno = " + rollno);
		System.out.println("Name = " + name);
	}
}

class marks extends student {
	int total;

	marks(int r, String n, int t) {
		super(r, n); // call super class (student) constructor
		total = t;
	}

	void dispdatam() {
		dispdatas(); // call dispdatap of student class
		System.out.println("Total = " + total);
	}
}

class percentage extends marks {
	int per;

	percentage(int r, String n, int t, int p) {
		super(r, n, t); // call super class(marks) constructor
		per = p;
	}

	void dispdatap() {
		dispdatam(); // call dispdatap of marks class
		System.out.println("Percentage = " + per);
	}
}

public class MultipleInheritanceJava {
	public static void main(String args[]) {
		percentage stu = new percentage(1912, "SAM", 350, 50); // call
		// constructor
		// percentage
		stu.dispdatap(); // call dispdatap of percentage class
	}
}

Output

Rollno = 1912
Name = SAM
Total = 350
Percentage = 50
Share

You may also like...