TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ronald Abellano
NA
161
37.4k
Why declare interface property as an abstract?
Jul 13 2018 6:18 AM
abstract
class
Position
{
public
abstract
string
Title {
get
; }
}
class
Manager : Position
{
public
override
string
Title
{
get
{
return
"Manager"
;
}
}
}
static
class
Factory
{
public
static
Position Get(
int
id)
{
switch
(id)
{
case
n:
return
new
....
}
}
}
Can we not just declare the property not abstract? Why it has be overridden when implemented?
Reply
Answers (
1
)
What is Autocad
Data Access using Entity framework in Windows Service