Abstract Class
- Abstract class provides a set of rules to implement next class
- Rules will be provided through abstract methods
- Abstract method does not contain any definition
- While inheriting abstract class all abstract methods must be override
- If a class contains at least one abstract method then it must be declared as an “Abstract Class”
- Abstract classes can be instantiated, but a reference cannot be created
- Reference depends on child class object’s memory
- Abstract classes are also called as “Partial abstract classes”
- Partial abstract class may contain functions with body and functions without body
- If a class contains all functions without body then it is called as “Fully Abstract Class” (Interface)
Interface
- If a class contains all abstract methods then that class is known as “Interface”
- Interfaces support like multiple inheritance
- In interface all methods r public abstract by default
- Interfaces r implementable
- Interfaces cannot be instantiated, but a reference can be created


SubashPosted Sep 14, 2016, 8:25 PM EDT
Useful one
saurabh dhirPosted Aug 24, 2016, 4:58 AM EDT
Thanks its very helpful
Ravinder KumarPosted Jul 30, 2016, 3:12 AM EDT
It is very useful for us.....
Bhavik PatelPosted Jul 14, 2016, 8:41 AM EDT
Nice
manoj kumarPosted Jul 14, 2016, 2:46 AM EDT
Very helpful (Y) good going Lokesh
Ravinder KumarPosted Jul 14, 2016, 2:04 AM EDT
Its very usefull. thanks
Harminder SinghPosted Jul 14, 2016, 2:01 AM EDT
Nice buddy
Parvez AhadPosted Jul 14, 2016, 12:58 AM EDT
Very useful information