No announcements
Found 2458106 threads
-
1 Votes
What is the purpose of non abstract method in abstract class?
Stream.Dispose is a non-abstract method that calls the virtual Close method (not abstract, but it could be in a similar type).Answered | 7 Replies | 10099 Views | Created by Sharad Kumar - Monday, April 12, 2010 12:47 PM | Last reply by Rudedog2 - Monday, April 12, 2010 3:15 PM -
1 Votes
How to define contract for abstract methods?
How can I define a contract for the abstract GetSubscriptions method in the following example, except by introducing an interface and defining the contract on that?Answered | 1 Replies | 4867 Views | Created by Morten Mertner - Friday, April 8, 2011 3:26 PM | Last reply by Alex Rønne Petersen - Saturday, April 9, 2011 10:57 AM -
0 Votes
Can we replace Abstract classes by defining Interfaces with Extension methods ?
Extension Methods are static Methods with soem Syntax sugar.Answered | 1 Replies | 345 Views | Created by Mukkala Jagan - Tuesday, August 9, 2016 8:46 AM | Last reply by Christopher84 - Tuesday, August 9, 2016 9:50 AM -
2 Votes
What is Abstract Class ?
An abstract class is any class which contains abstract methods.Answered | 4 Replies | 3587 Views | Created by Kalai R - Thursday, August 11, 2011 2:41 AM | Last reply by AB82 - Friday, August 12, 2011 2:11 PM -
3 Votes
What are abstract classes for?
Depending on what the ReportPrint method needs to do, it might not even convert the instance to the correct type for printing - in that case the addition of a new ...Answered | 11 Replies | 1092 Views | Created by George Waters - Sunday, June 16, 2013 10:39 AM | Last reply by George Waters - Sunday, June 16, 2013 10:44 PM -
7 Votes
What is difference between abstraction and abstract class ?
Abstraction tells us what the object does instead of how it does it.Answered | 7 Replies | 10140 Views | Created by Vithal Wadje - Monday, January 6, 2014 5:18 PM | Last reply by Vithal Wadje - Monday, January 6, 2014 7:32 PM -
1 Votes
Contracts for Generic Parameters in Abstract Methods
If you look at this method in isolation, then there is really no information as to what the requirement at the Validate call is.Answered | 4 Replies | 4941 Views | Created by Dave Sexton - Monday, October 5, 2009 6:28 AM | Last reply by Dave Sexton - Friday, October 23, 2009 5:24 AM -
3 Votes
what is abstract class ?
You can put abstract methods in the employee class, for example put n an abstract method to calculate the bonus.Answered | 8 Replies | 3312 Views | Created by sacchd - Thursday, March 25, 2010 5:49 AM | Last reply by cool gags - Monday, March 29, 2010 11:51 AM -
0 Votes
A question about abstract class and abstract method
Hi Vamsi, The code that you have shared is nothing but Abstract Factory pattern implementation which has a factory method and an abstract method ...Answered | 3 Replies | 2908 Views | Created by vamsi_krishna - Thursday, June 17, 2010 7:13 AM | Last reply by vamsi_krishna - Friday, June 18, 2010 6:20 AM -
0 Votes
What is the point of defining a method abstract?
User-952121411 posted However what's the point of forcing each class to override a method implementation, and not just create a new ...Answered | 3 Replies | 51 Views | Created by Anonymous - Monday, November 1, 2010 1:22 PM | Last reply by Anonymous - Friday, November 5, 2010 10:13 AM -
47 Votes
What's the difference between Abstract classes and Interfaces?
2) An interface forces you to not know anything about what the actual implementing class will be, and define it only in terms of the method contracts.Answered | 32 Replies | 261373 Views | Created by Garegin Gulyan - Friday, February 16, 2007 7:17 AM | Last reply by Sanjay Kr Singh - Saturday, November 3, 2012 9:31 PM -
0 Votes
Difference between a Abstract class with 4 abstract methods and a Interface with 4 abstract methods.
Your question is better rephrased as: What is the difference between an abstract class and a interfase?Answered | 2 Replies | 2775 Views | Created by priya2silverlight - Thursday, July 15, 2010 6:38 PM | Last reply by Serguey123 - Thursday, July 15, 2010 7:12 PM -
2 Votes
whats the advantages of interface over abstract class?
Define abstract member signatures that base classes must implement.Answered | 4 Replies | 18917 Views | Created by lax4u - Tuesday, December 16, 2008 6:08 PM | Last reply by ronan001 - Tuesday, December 16, 2008 7:15 PM -
0 Votes
A test for a method with an abstract class in parameter list
E.g. assuming MyAbstractClass has an abstract method called GetTheAnswer() that returns an Int32, which needs to return an expected value for your test, then ...Answered | 2 Replies | 1555 Views | Created by Leonid Ganeline - Wednesday, January 30, 2013 6:58 PM | Last reply by dekurver - Thursday, January 31, 2013 12:24 AM -
0 Votes
Abstract Linq method
The only abstraction you can do is make a custom class, a container class, that represents both tables if the tables in two databases are the same, like a DTO.Answered | 3 Replies | 599 Views | Created by FcabralJ - Monday, January 13, 2020 9:48 PM | Last reply by Timon Yang - Tuesday, January 14, 2020 6:10 AM -
5 Votes
abstract class : how to implement Class A and class B method in class c.
What you cannot do is hide an abstract method, because it prevents the abstract method from ever being implemented.Answered | 26 Replies | 2228 Views | Created by love4csharp - Friday, January 25, 2013 3:55 AM | Last reply by D Avik - Tuesday, January 29, 2013 1:15 PM -
0 Votes
Abstraction
One the other hand abstract methods are methods without body. you just declare them as public void MyMethod(); Hope ...Answered | 6 Replies | 3929 Views | Created by DurgaMani - Friday, March 25, 2011 12:08 PM | Last reply by Leo Liu - MSFT - Friday, April 1, 2011 1:52 AM -
1 Votes
Encapsulation and abstraction
1:What is the difference between an encapsulation and abstraction?Answered | 3 Replies | 639 Views | Created by pianoboyCoder - Wednesday, October 7, 2015 3:52 AM | Last reply by Andy ONeill - Wednesday, October 7, 2015 10:26 AM -
4 Votes
Use of Abstract class
Same goes for abstract, method have no implementation!Answered | 10 Replies | 2523 Views | Created by tigerinworld - Monday, September 10, 2012 6:20 AM | Last reply by Sehnsucht_Fr - Monday, September 10, 2012 2:56 PM -
0 Votes
What we are achieving by interfaces over Abstract class?
Actually we(me and my team members) had a debate about differences between interface and abstract classes in oops.Apart from multiple inheritance what we are achieving by using ...Answered | 3 Replies | 704 Views | Created by La07K - Tuesday, December 17, 2019 4:51 PM | Last reply by La07K - Wednesday, December 18, 2019 11:53 AM - Items 1 to 20 of 2458106 Next ›
No announcements