Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Abstract class and interface..

Former Member
0 Likes
416

Hi Guys..

Can you explain me the way , how the implematation of methods from Abstract class and Interfeces works in subclasses..and what is the advantages and disadvantages of each..

Rewards points if answered..

Thanks in advance

Sravan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
381

Hi,

Abstract classes are majorly used when u want to substitute a part of the class functionality through your own defined implementation.

Interfaces are generally used when you dont have an exact defined implementation to any of the methods in the class..

Thats why you define an interface for a class and we will use a class to implement that.

Hopefully it gives you some idea.

Reward if helpful

2 REPLIES 2
Read only

Former Member
0 Likes
382

Hi,

Abstract classes are majorly used when u want to substitute a part of the class functionality through your own defined implementation.

Interfaces are generally used when you dont have an exact defined implementation to any of the methods in the class..

Thats why you define an interface for a class and we will use a class to implement that.

Hopefully it gives you some idea.

Reward if helpful

Read only

Former Member
0 Likes
381