Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
1.73/5 (4 votes)
See more:
I want to know about abstract class .
Posted
Updated 30-Dec-17 20:02pm
Comments
thatraja 28-Jan-14 7:59am    
Do Google search

When I come across a term I don't understand, I find it helpful to do a Google and CodeProject search to see if there are any articles, wiki pages, blogs, etc, that detail the topic that I am interested in. In the case of a term that can be used outside of computing (e.g. abstract could refer to abstract thought, or a brief excerpt out of a book), I find it helpful to narrow the scope of my search by using a combination of "keyword" (if it's a keyword) and the language I'm interested in. Okay, so we've identified that you are going to query on Google (or Bing if that's your thing) using the phrase "abstract keyword c#". That should get you many hits.

Now most answers will stop at this point, but they are missing out on a very important part of your growth as a developer. What are the edge cases? In the case of abstract, is it possible to have a sealed abstract class (no - it wouldn't make sense)? What about if your abstract class doesn't have abstract methods - does it makes sense for it still to be abstract? As you progress as a developer, you will learn to ask questions like this - which will give you a more thorough understanding of the language.
 
Share this answer
 
Comments
thatraja 28-Jan-14 8:23am    
Please use your article instead of typing first paragraph of your answer.

5!
Pete O'Hanlon 28-Jan-14 8:27am    
Thanks. I'm taking a different approach to helping people now - if I can teach just one person how to solve a problem then my time on CodeProject is time that I have spent well.
thatraja 28-Jan-14 8:32am    
I just wanted to suggest you to less typing, that's all. And how about another article(sequel to previous one) based on different approach?

Besides, today I saw more than bunch of interview questions, that's why my comment here.
Rahul VB 28-Jan-14 12:06pm    
Excellent thought Sir and your article bookmarked. Very well said.
5+
 
Share this answer
 
Comments
Dinesh.V.Kumar 27-Feb-14 23:31pm    
Can you please let me know why you downvoted my answer... The links do give info abt abstract class...Even though it helps you even if you dont vote it as an answer...I dont see any reason for the down vote!!!
The abstract modifier indicates that the thing being modified has a missing or incomplete implementation. The abstract modifier can be used with classes, methods, properties, indexers, and events. Use the abstract modifier in a class declaration to indicate that a class is intended only to be a base class of other classes. Members marked as abstract, or included in an abstract class, must be implemented by classes that derive from the abstract class
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900