when to use Interface and when to use abstract class?

please suggest

Recommended Answers

All 2 Replies

Use abstract class if you want to create new inherited classes. Interfaces are suitable to add abstract methods to existing class hierarchy.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.