what means this code

Hi,

what means this code?

public:
virtual Type^ GetType() sealed

this code is from http://msdn.microsoft.com/cs-cz/library/s2wzt390.aspx

Why This function is virtual?

sorry, i'm beginner
Last edited on
I think that classes in C# are inherited from System.Object. So to determine the type of a derived class the virtual method of System.Object is used.
Thank you.

But why in c + + uses the word virtual but not in c #?
c++: virtual Type^ GetType() sealed
c#: public Type GetType()

Why C # does not use virtual keyword?

Sorry for bad English
Why C # does not use virtual keyword?

Are you sure?
http://msdn.microsoft.com/en-us/library/9fkccyh4%28v=vs.71%29.aspx
@Peter87

Why C # does not use virtual keyword?
Are you sure?


@Peter87, he asked about the method GetType in C#.
Topic archived. No new replies allowed.