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

Is attribute also overridable?

I'm learning about overriding. My understanding is that I can override
methods and properties of a class by inheriting that class. Does it include
attribute?
Oct 3 '07 #1
3 1059
Peter,

What is in your words an attribute. (We are talking about the VB language
code part). A class has members, which are methods, properties and events.

The word attribute is used in my idea in many situations, I assume that you
are not talking about the general behaviour of a class?

Cor

Oct 4 '07 #2
Cor,

You're right that the word attribute is too vague. I'm referring to the
declarative tag <>.
Peter

"Cor Ligthert[MVP]" wrote:
Peter,

What is in your words an attribute. (We are talking about the VB language
code part). A class has members, which are methods, properties and events.

The word attribute is used in my idea in many situations, I assume that you
are not talking about the general behaviour of a class?

Cor
Oct 4 '07 #3
Peter,

A declarative tag says something about a class, so I would not know why you
cannot set the behaviour of a new class. However that is not ending. Of
course you can not make a non overridable class with that overridable.

Just try it.

Cor

Oct 5 '07 #4

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

Similar topics

3
by: Marina | last post by:
Hi, I have a class that inherits from CollectionBase, and I'm trying to override its Count property. As per the documentation, this property is overridable - so I should be able to do this. So...
2
by: H | last post by:
Here is a good one!! A book I am reading on OOP states 'If any method is marked to allow overriding, the access can be changed by a derived class.' Also 'A derived class can even change...
1
by: bminder | last post by:
In the asp.net pages below, Common.vb has an overridable Page_Load sub. In the consuming page, Two.aspx, the Page_Load sub is inherited, but for some reason it (Overrides Sub Page_Load) executes...
1
by: steve kain | last post by:
Hi. I'm just wondering how come the compiler complains when you declare a new sub as overridable but it then lets you define multiple new subs with different interfaces, essentially overriding...
3
by: dbuchanan | last post by:
Why can't I add the 'Overridable' key word to any of the methods or events in my base class? VB.NET thinks I am trying to define a variable. What am I doing wrong? I get the squiggly line under...
2
by: MDFS | last post by:
Hi, I was wondering if anyone has any information on the performance impact of using functions declared as overridable? To Explain more fully; By default every function created in VB is NOT...
3
by: grawsha2000 | last post by:
Hello, I have an overridable function in a base class (to do some basic database works) that gets inherited by many concrete classes. These concrete classes expands the work of that...
5
by: Ben | last post by:
Hi, i defined a function in the base class 'ford' and the same function (with different output) in subclass "peugeot". I first put 'Overridable function' in the base class and 'Overrides...
0
by: Internet User | last post by:
According to MSDN, You should never base the security of your application on a member that is marked with the internal virtual modifier in C# (the Overloads Overridable Friend modifier in Visual...
1
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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...

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.