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. thaks sir for giving information about adding int
View Tutorial          By: vijay kumar at 2012-10-10 04:59:05

2. precisely the drawbacks I am trying to address in
View Tutorial          By: ernest at 2011-02-05 02:16:13

3. Cant undrstand clearly
View Tutorial          By: rathika at 2014-06-09 11:02:16

4. Thank you very much.
View Tutorial          By: allcracked at 2013-09-11 19:10:20

5. hiii
i m doing my final year project on sms

View Tutorial          By: jiya at 2010-10-21 07:58:24

6. Thanks for this nice comparision table for Spring
View Tutorial          By: guddu at 2009-10-17 03:08:59

7. can anyone explain the output of this recursive ex
View Tutorial          By: vipul at 2012-08-12 19:41:19

8. Thank you very much. This is the easiest and also
View Tutorial          By: Mehmet Üsküp at 2013-06-17 21:08:08

9. Hi, Can anyone please tell me where we need to cha
View Tutorial          By: Gunjan at 2014-01-02 12:08:41

10. Hi every one. I am working on my project in j2me a
View Tutorial          By: wazir at 2010-11-26 08:27:43