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. But the above code is not working, when we send SM
View Tutorial          By: SenthilPandi ChandraSekaran at 2011-06-08 07:22:31

2. Dude, that LOOP wont work i cant even understand w
View Tutorial          By: Rohan at 2012-02-16 17:04:06

3. Hello Friends, i am getting an error in following
View Tutorial          By: Albin at 2008-07-10 23:49:33

4. how to comapre two hash map
View Tutorial          By: vinay at 2013-05-03 10:21:57

5. somebody help me doing my case study .. its a rese
View Tutorial          By: lady at 2013-12-25 08:21:03

6. its very helpful and understandable.thanq
View Tutorial          By: Deepika darapaneni at 2012-03-24 14:16:39

7. i m new in java plz send some programs of java usi
View Tutorial          By: supriyo at 2009-09-02 02:03:38

8. It's a good article.Would you please elaborate th
View Tutorial          By: Chandra at 2015-10-05 12:24:24

9. i found this tutorial very useful... i need to kno
View Tutorial          By: Anonymous at 2009-04-14 21:09:20

10. Does Wait() inside synchronized create a race cond
View Tutorial          By: Aviator168 at 2010-04-21 16:02:06