0

what is difference between abstract method and abstract class?

please give me example too

22nd Sep 2016, 9:09 AM
venkata veerendra manikumar kancharla
venkata veerendra manikumar kancharla - avatar
2 Answers
+ 3
abstract class If a class is defined as abstract then we can't create an instance of that class. By the creation of the derived class object where an abstract class is inherit from, we can call the method of the abstract class.
22nd Sep 2016, 2:17 PM
Adulkhaliq Q Hamad
Adulkhaliq Q Hamad - avatar
+ 3
abstract method An Abstract method is a method without a body. The implementation of an abstract method is done by a derived class. When the derived class inherits the abstract method from the abstract class, it must override the abstract method. This requirment is enforced at compile time and is also called dynamic polymorphism.
22nd Sep 2016, 2:18 PM
Adulkhaliq Q Hamad
Adulkhaliq Q Hamad - avatar