@Shervan360 , Welcome to Microsoft Q&A,
What is exactly concrete type and concrete method in C#?
A concrete class is a class that allows creating an instance or an object using the new keyword.
A concrete method is a method that can be called directly.
Is the same with abstract type?
No, the abstract type is different from Concrete type. Abstract type must be decorated with the abstract keyword and it can not be instantiated.
Abstract methods are those which need to be implemented in subclass/child class. Abstract methods are only defined in superclass/parent class(Abstract class) but with no body.
You could look at the following code example to know more about it.
public abstract class Animal ->abstract type
{
public abstract void Talk(); ->abstract method
public abstract void Move(); ->abstract method
}
public class Human : Animal ->Concrete type
{
public override void Talk() ->Concrete method
{
Console.WriteLine("This blog post is awesome! :)");
}
public override void Move()
{
Console.WriteLine("I'm walking on 2 feet.");
}
}
Hope my explanation could help you.
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.