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



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. Hi
I have a USB bluetooth that plug in my c

View Tutorial          By: Duong D. Thien at 2008-06-25 06:09:07

2. which method is called if i call overriden method
View Tutorial          By: sarah at 2012-02-01 13:36:10

3. ..how if the input is THE DOG BARKS then the outpu
View Tutorial          By: dharel at 2011-01-28 02:53:19

4. thanks for giving the example of abstract class...
View Tutorial          By: mahesh at 2010-04-11 08:20:45

5. This is totally great. Your explaination make me u
View Tutorial          By: Cipom at 2010-04-11 18:41:04

6. Very nice tutorial........
View Tutorial          By: Santosh Saha at 2010-04-11 05:58:51

7. thanks emily, this was fantastic... just saved me
View Tutorial          By: philip at 2010-04-10 20:39:08

8. I need a software to send messages to our members.
View Tutorial          By: M V Bhaktha at 2012-05-22 08:19:38

9. Zabardast
View Tutorial          By: Rohan at 2011-11-03 08:25:59

10. The following exception are raised in send sms in
View Tutorial          By: Vikram Subbiah at 2010-04-12 02:09:36