472,353 Members | 1,251 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 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 1702
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...
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...
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...
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 =========== ...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.