Difference between Concrete class and Abstract class
Let's have a look at the Concrete class and Abstract class.

Eg :
class Sample
{
public void MyMethod()
{..............}
}
Eg :
public abstract class MyClass
{
public void MyMethod()
{..............}
public abstract TestMethod()
{
.........
}
}
Concrete class:-
- A concrete class is nothing but normal class, we can use as a base class or may not.
- Not compulsory, it can't contain abstract methods.
- We can instantiate the object and work with this class.
Eg :
class Sample
{
public void MyMethod()
{..............}
}
Abstract class:-
- An abstract class is a class which declared with a keyword Abstract.
- Must be used as a base class.
- Only intention to declare an abstract class is to use as a base class that is we can't create an object of this class like concrete class.
- It can contain abstract methods as well as concrete (normal) methods.
Eg :
public abstract class MyClass
{
public void MyMethod()
{..............}
public abstract TestMethod()
{
.........
}
}
Author : Valli Perumal
I was recommended this website via my cousin. I am now not
ReplyDeletesure whether or not this submit is written by means of him as nobody
else realize such special about my problem. You're amazing!
Thanks!
Hi! This is kind of off topic but I need some guidance from an established
ReplyDeleteblog. Is it very difficult to set up your own blog? I'm not very techincal but I can figure
things out pretty quick. I'm thinking about creating my
own but I'm not sure where to start. Do you have any tips or suggestions?
With thanks
I spent a great deal of time to find something like this
ReplyDeleteWith thanks! Valuable information!
ReplyDeletegood stuff. I will make sure to bookmark your blog.
ReplyDelete