Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Re[3]: Is there a performance overhead in using either an abstract class or an interface?

0
Posted

Re[3]: Is there a performance overhead in using either an abstract class or an interface?

0

Author: kanchi balaji (http://www.jguru.com/guru/viewbio.jsp?EID=1288733), Mar 16, 2006Abstract class is faster than interfacewe write a program using abstract class in that abstract classwe declare abstract methods and variables.if we want that methods and variable for another class weextends that abstract class which method and variable we wantto declare eg: //take an example class shapeabstract class shape{int a,b,c;String s1;abstract area(int);abstratc area(int a,string s);heresrea is used every class ie square, rectangle, trangleetc.. so which shape we want we extends this abstract.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123