Important points
- abstract class may not contain anything.
abstract class A
{
No methods, no work, be coooool...!!! Dude;
}
- abstract class may contain all are abstract methods.
abstract class B
{
public abstract void method1();
public abstract void method2();
}
- abstract class may contain abstract methods and non abstract methods.
abstract class C
{
public void method1()
{
body of method1;
}
public abstract void method2();
}
- abstract class may contain all implemented methods.
abstract class D
{
public void method1()
{
body of method1;
}
public void method2()
{
body of method2;
}
}
Thanks for your time.
Nireekshan