473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

"Virtual properties behave like abstract methods" ?

The microsoft page http://msdn2.microsoft.com/en-us/library/9fkccyh4.aspx

states:

Remarks (nr 4)

Virtual properties behave like abstract methods, except for the
differences in declaration and invocation syntax.
Why is it "abstract methods", not "virtual methods" ?
Oct 6 '06 #1
4 1767
Gert,

I believe it is a typo. It should to be read *virtual*.
--
HTH
Stoitcho Goutsev (100)

"Gert Kok" <ge*****@keraweb.nlwrote in message
news:12*************@corp.supernews.com...
The microsoft page http://msdn2.microsoft.com/en-us/library/9fkccyh4.aspx

states:

Remarks (nr 4)

Virtual properties behave like abstract methods, except for the
differences in declaration and invocation syntax.
Why is it "abstract methods", not "virtual methods" ?

Oct 6 '06 #2
Gert Kok wrote:
The microsoft page http://msdn2.microsoft.com/en-us/library/9fkccyh4.aspx

states:

Remarks (nr 4)

Virtual properties behave like abstract methods, except for the
differences in declaration and invocation syntax.
Why is it "abstract methods", not "virtual methods" ?
I have to agree with Stoitcho that it is most likely a typo. Abstract
methods must be overridden in a derived class. Virtual properties do not
need to be overridden in derived classes. Abstract properties must be
overridden in derived classes.
--
Tom Porterfield

Oct 6 '06 #3
I'm sure, it's only a typo.

The programmers reference often is much less exact than the specifications.

Here the quote from the specs:
Except for differences in declaration and invocation syntax, virtual,
sealed, override, and abstract accessors behave exactly like virtual,
sealed, override and abstract methods.
..
"Gert Kok" <ge*****@keraweb.nlschrieb im Newsbeitrag
news:12*************@corp.supernews.com...
The microsoft page http://msdn2.microsoft.com/en-us/library/9fkccyh4.aspx

states:

Remarks (nr 4)

Virtual properties behave like abstract methods, except for the
differences in declaration and invocation syntax.
Why is it "abstract methods", not "virtual methods" ?

Oct 6 '06 #4
Yes,

And it is pretty obvious from the context of the article - its is about
*virtual* keyword not *abstract*.They have different article for
*abstract* - http://msdn2.microsoft.com/en-us/library/9fkccyh4.aspx .
In that article one can find exactly the same sentence

"Abstract properties behave like abstract methods, except for the
differences in declaration and invocation syntax."

It looks like more like Copy/Paste error.
--
Stoitcho Goutsev (100)
"Tom Porterfield" <tp******@mvps.orgwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Gert Kok wrote:
>The microsoft page http://msdn2.microsoft.com/en-us/library/9fkccyh4.aspx

states:

Remarks (nr 4)

Virtual properties behave like abstract methods, except for the
differences in declaration and invocation syntax.
Why is it "abstract methods", not "virtual methods" ?

I have to agree with Stoitcho that it is most likely a typo. Abstract
methods must be overridden in a derived class. Virtual properties do not
need to be overridden in derived classes. Abstract properties must be
overridden in derived classes.
--
Tom Porterfield

Oct 6 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

51
by: Noam Raphael | last post by:
Hello, I thought about a new Python feature. Please tell me what you think about it. Say you want to write a base class with some unimplemented methods, that subclasses must implement (or...
12
by: cppaddict | last post by:
Hi, I know that it is illegal in C++ to have a static pure virtual method, but it seems something like this would be useful when the following 2 conditions hold: 1. You know that every one...
175
by: Ken Brady | last post by:
I'm on a team building some class libraries to be used by many other projects. Some members of our team insist that "All public methods should be virtual" just in case "anything needs to be...
8
by: Asfand Yar Qazi | last post by:
Hi, I have the following header file in my 'everything useful I think of in one place' library: ============= BEGIN CODE SNIPPET =========== /** All classes that derive from this obtain a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.