Comment on Tutorial - Abstract classes in Java By Kamini



Comment Added by : satish

Comment Added at : 2012-04-07 10:35:38

Comment on Tutorial : Abstract classes in Java By Kamini
abstract class A {
abstract void callme();

void callmetoo() {
System.out.println("This is a concrete method.");
}
}

class B extends A {
void callme() {
System.out.println("B's implementation of callme.");
}
}

class AbstractDemo {
public static void main(String args[]) {
B b = new B();

b.callme();
b.callmetoo();
}
}satish


View Tutorial



Ask a Question

Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Hy gr8 man..!!! It was easy understanding
View Tutorial          By: ahwe at 2010-04-07 02:50:40

2. i want to know how to read a file inside zipfile.<
View Tutorial          By: iman at 2009-11-26 12:50:21

3. how this program is work , please, tell
View Tutorial          By: rohit kumar at 2015-10-30 12:22:05

4. really superb in simple english with examples. Exp
View Tutorial          By: hariharan at 2009-01-14 22:22:32

5. why can't we download & install keybasic on ph
View Tutorial          By: jimoh abiodun at 2013-04-14 13:06:18

6. Not bad,but need some implementation
View Tutorial          By: surjeet katwal at 2010-01-19 04:41:15

7. thanks for providing information in a simple langu
View Tutorial          By: shailaja at 2010-09-01 03:50:41

8. #include<iostream>
#include<conio.

View Tutorial          By: Zohaib Farooq at 2011-05-23 12:47:54

9. A good and useful tutorial for beginners.
t

View Tutorial          By: Hayk at 2010-01-12 10:55:15

10. Sir, I need to use MS Access as a database in java
View Tutorial          By: John Moses at 2012-03-31 00:20:38