473,320 Members | 1,799 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,320 software developers and data experts.

MyClass Keyword

Give the exact definition of MyClass keyword?
Mar 28 '08 #1
5 1194
Plater
7,872 Expert 4TB
Easy. MyClass is NOT a keyword.
Done. What else?
Mar 28 '08 #2
The MyClass keyword is used to refer to the containing class and its inherited members. It refers to the current instance of a class as originally implemented. It treats all method calls as NotOverridable, i.e., called methods are not affected by overriding in a derived class. The MyClass keyword can be used as a qualifier for Shared members. Following are some restrictions imposed on the usage of the MyClass keyword:
It cannot be assigned to a variable.
It cannot be passed to procedures.
It cannot be used with the Is operator for logical comparison.
It cannot be used in standard modules.
Mar 28 '08 #3
Platter , MyClass is a keyword..Its Sure....But I do Not Know the exact defintion.

http://msdn2.microsoft.com/en-us/lib...yk(VS.71).aspx
Mar 28 '08 #4
Plater
7,872 Expert 4TB
It occured to me that it was some nonsensical VB-only thing.
But I stuck to my guns on that one.


EDIT: That article makes it sound like the base operator. Used to refer to a base class's methods from withen an inherited class.
Mar 28 '08 #5
kenobewan
4,871 Expert 4TB
It occured to me that it was some nonsensical VB-only thing.
Ouch, that hurt ;). I searched for some witty but stinging C# reply, but came up short. All I have is Hannes Preishuber and save the C# conferences lol.

ps - who is Platter? Is it Bruno, the Grand master of the Teutonic Order - http://en.wikipedia.org/wiki/Platter?
Mar 29 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

32
by: Mario Fratelli | last post by:
MyClass *p = new MyClass; MyClass *p = new MyClass(); do they mean something different? Thanks a lot, Mario Fratelli.
11
by: modemer | last post by:
If I define the following codes: void f(const MyClass & in) {cout << "f(const)\n";} void f(MyClass in) {cout<<"f()\n";} MyClass myclass; f(myclass); Compiler complain that it can't find...
4
by: John | last post by:
I have a function declaration that gives an error while compiling. Can anyone help me figure this one out? inline void create(const std::vector< myclass >& plist, std::vector< myclass...
8
by: FDude | last post by:
In otherwords, how do I force a method in my class to call the method implementations in the SAME class and not use any potentially overriden methods in derived classes?
24
by: Water Cooler v2 | last post by:
What is the difference between the Me and the MyClass keywords? I understand Me that it represents the specific instance of the class. When you're inside the object instance, it refers to itself...
16
by: Gernot Frisch | last post by:
Hi, class MyString { char* m_data; public: MyString(const char* c) { m_data = new char; strcpy(m_data, c);
9
by: devloop | last post by:
Hi, I am a JAVA developer who just started with php5 (on a WAMPP with php5.2.1). I´ve the following problem with a little class (I wanted to put objects into the array later but even with...
0
by: Curious | last post by:
Hi, I've created a windows form application. I have a form and a .cs file in the application, and I've renamed them to MyDialog and MyClass.cs. In MyClass.cs, I have a member called...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.