Usage of keyword virtual

Hi,
Got a basic question.
Is the usage of keyword "virtual" optional when declaring the methods in the derived class?
Eg:
class C {
public:
virtual void vmethod();
class D : public C
public:
void vmethod(); // missing keyword virtual. is it ok?
TIA
Satya

If the declaration of the derived-class function is identical to the base-class version, the "virtual" keyword is optional. If the declarations are not the same, the derived-class function will not be a virtual function unles you declare it virtual. Example:
class Base {
public:
   virtual int f(int);
   virtual int g(int);
class Derived : public Base {
public:
  int f(int, int); // not virtual
  int g(int); // implicitly virtual
};

Similar Messages

  • Does service reporting provide usage data of Virtual Machine NICs ?

    Hello Guys,
    Does Service reporting provide usage data of Virtual Machine NICs ? if yes how can I fetch that data.
     awaiting reply
    Thanks
    NM-BG

    Hi,
    Thank you for reaching out to us.  From a support perspective the way forward would be to open up a support ticket. Please refer to
    this documentation on how to open a support ticket. Hope this helps.
    Warm Regards;
    Prasant

  • Usage of keyword static at different places in a Java Class File

    Hi i am Raj,
    i just wanted to know where all i can use keyword "static" and what does tht usage mean?
    For example,
    what do you mean when you declare a class static,
    what do you mean when you declare a method static,
    what do you mean when you declare a variable static.
    could anyone comeup with clear explanation on the above, and it would be great if any links are provided which has some readup on this thing.
    Thank you,
    Raj.

    BINU_KOLATHU wrote:
    • Java does not allow global variables. The closest thing we can get to a global variable
    in Java is to make the instance variable in the class static.
    • The effect of doing this is that when we create multiple objects of that class, every object
    shares the same instance variable that was declared to be static.
    • To make an instance variable static we simply precede the declaration with the static
    keyword :
    e.g. public static int anInstanceVar = 0;
    • In effect what we are really doing is saying that this instance variable, no matter how
    many objects are created should always reside in the same memory location regardless
    of the object. This then simulates a “global variable” of sorts.
    • We usually make a variable declared to be final, static as well since it makes sense to only
    have the one instance of a constant.
    • Note, some people refer to static instance variables as “class variables”.Please stop resurrecting ancient threads

  • Use of virtual cube 0FIGL_V10 for reporting on Financal Statements

    Dear all,
    I am new to the GL reporting and I have a question about the usage of the virtual cube for reporting on Financial Statements.
    On the content site I see that you can report your Balance Sheet based on the infocube 0FIGL_C10, where you can use the infoobject 0GLACCOUNT to display the balances.
    I also installed the Virtual Cube 0FIGL_V10, which has the infoobject 0GLACCEXT to show the Financial Statement Item hierarchy.
    My questions are:
    - to create a Balance Sheet Report, is it advisable to use the content query 0FIGL_C10_Q001?
    If I run that query now, it is showing the data on seperate G/L accounts, where I would like to see a hierarchy display.
    For reporting on the capital expenditure however the requirement is that some G/L acoounts don't have to be taken into account. How can I exclude those then from the hierarchy for that report?
    - to create the P&L, advice on the content site is to use the virtual cube because you have the Financial Statement Item hierarchy available there and you can report on specific financial statements.
    Can anyone tell me the added value of using the Virtual Cube? Or can I skip it and just add the Financial Statement Item hierarchy in the 0FIGL_C10 cube and create a report where I select the nodes of the hierarchy that are only applicable for the P&L? Will that corrupt the figures or have any other effect?
    Thanks in advance for the help!

    Hi Sundar,
    As ravi said the VC can be used when we have leass number of users, basically in VC the structure will be available. And moreover when you generetae a report based on Multiprovider which is based on the VC then it will pick up the data directly from the source to which it has been connected..
    Hope it helps..
    ***Assign Points***
    Thanks,
    Gattu

  • Akonadi and mysqld memory usage[Solved]

    After the mysql update I've noticed that mysqld for Akonadi is using more memory than before. While before I didn't even notice it for the most of the time, now it's the first biggest constant user of memory.
    And I have no idea why.
    How do I even troubleshoot this kind of problem?
    PS.: the usage is this:
    Virtual: 387M
    RES: 148M
    MEM% 7.4
    Which increased my memory usage from arround 900-100 to 1200
    Last edited by Primoz (2011-02-11 18:41:35)

    Okay what I've learned is that you have to keep .config files clean. I've reinstalled Akonadi, deleted ~/.config/akonadi folder and after some problems because of it, I finally got things working and things kind of dropped a bit.
    But mysqld with akonadi is still a mem hog. But I guess this is how it's supposed to be.

  • URGENT HELP for Ranges keyword

    hi guys,
           Can any one tell me usage of keyword RANGES is recommended or it is OBSOLETE.
    AHMED

    Hi Ahmed
    The RANGES is used even now a days as if you have a lot many constants and you need to use them internally then you can build a range.
    It will work same as Select Options..
    The difference is Select options take the values from the screen externally.
    and Ranges are used internally and get the values from the internal logic..
    It is mostly used when you have comparision or in Select Query..
    For Eg...
    Select kunnr from kna1
    where kunnr in s_kunnr
    and    land1 in r_land1.
    Here r_land1 is a range with countries only limiting to say Asia Pacific, like IN, AU, NZ, JP etc..
    Thanks
    Gaurav

  • Virtual systems within Transport system landscape

    Hi!
    I should map the existing transport management system landscape into ChaRM approach within SOLMAN.
    The existing transport management system landscape has a lot of virtual systems with virtual transport routes.
    Can some one of you explain the usage of such virtual systems with their virtual transport routes?
    Thank you very much!
    regards
    Thom

    read,
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/b4a0db7acc11d1899e0000e829fbbd/frameset.htm
    Regards
    Juan

  • Keyword and metadata for non-image files.

    Hi, everyone.
    As I have started to use Bridge to browse files in my system including those that are not image files I tried to find information on how Bridge handles the assignment of keywords and metadata to these files but couldn't find anything on Adobe's site.
    Considering non-image files such as PDF's, MS Office (Word, Excel), Text, HTML, and others, how does Bridge handles the assignment of metadata and keywords ? Where are they stored ? Embedded in the files themselves or in a sidecar file similar to what happens to RAW image files ?
    I've read some posts from other users about problems with this. Some report that they are able to assign keywords but these aren't maintained once the file is re-saved.
    Is there a manual on Adobe's site that covers the handling of keywords and metadata in Bridge ?
    TIA,
    Joe

    Joe,
    Being a digital archivist dealing primarily with pages digitized from the turn of the 20th Century for a religious sect I am highly involved in the usage of keywords.  Each page of a work, be it either a volume of a newspaper or a book, contains keywords.  I do not use side-car files but instead incorporate my keywords directly into the resultant TIF file.
    So I used your posting to see what the answer was.  To that end I am presently working on a 1922 title, Thirty-One Years of Organized Work in Oklahoma, Texas, New Mexico and Louisiana by Church of the Brethren from 1891 to 1922, that will consist of slightly over 500 pages.  To test your question I placed the title of the work as a keyword.  I then used Bridge's find ability.  It did not work.
    I forgot that Bridge converts all commas into semi-colons.  And changing the colons into semi-colons still returned no results.  An examination of the keywords tab showed the string broken down in to sections.  Searching for the longest string showed the problem.  Returning to my keyowrd string I removed all instances of the semi-colons and re-searched.  This resulted in a properyl found file.
    So.  The longest string I have tested to date is 120 characters, the title of the work minus the commas.  I suspect that Curt is correct in his assumption that it is limited by the operation system.  I tested this theory by incorporating a double string (without the commas) of my book's title.  This was 241 characters including the space between the duplicated title.  The search was successful.  A triple set of the title returned no hits.
    Wayne Webb

  • Catalog and Keyword Non-Image files

    In addition to my images, I have a growing collection of background and reference information relating to the subject or location of the images.
    I would like Lightroom to be able to Catalog and apply keywords to non-image files.
    I use a metadata search to find my images; I want to be able to use the same tool (Lightroom) and the same metadata (keywords) to find other related information.
    If Lightroom could Catalog and Keyword all Adobe format files (PDF, InDesign, etc.) this would be a great start.
    The next step; selectable list of file-types; export keywords to .xmp

    Joe,
    Being a digital archivist dealing primarily with pages digitized from the turn of the 20th Century for a religious sect I am highly involved in the usage of keywords.  Each page of a work, be it either a volume of a newspaper or a book, contains keywords.  I do not use side-car files but instead incorporate my keywords directly into the resultant TIF file.
    So I used your posting to see what the answer was.  To that end I am presently working on a 1922 title, Thirty-One Years of Organized Work in Oklahoma, Texas, New Mexico and Louisiana by Church of the Brethren from 1891 to 1922, that will consist of slightly over 500 pages.  To test your question I placed the title of the work as a keyword.  I then used Bridge's find ability.  It did not work.
    I forgot that Bridge converts all commas into semi-colons.  And changing the colons into semi-colons still returned no results.  An examination of the keywords tab showed the string broken down in to sections.  Searching for the longest string showed the problem.  Returning to my keyowrd string I removed all instances of the semi-colons and re-searched.  This resulted in a properyl found file.
    So.  The longest string I have tested to date is 120 characters, the title of the work minus the commas.  I suspect that Curt is correct in his assumption that it is limited by the operation system.  I tested this theory by incorporating a double string (without the commas) of my book's title.  This was 241 characters including the space between the duplicated title.  The search was successful.  A triple set of the title returned no hits.
    Wayne Webb

  • Virtual Office, Personal Assistant

    Title: Virtual Office, Personal Assistant
    Virtual Office Support provides administrative support to small
    businesses, home-based businesses and entrepreneurs. The staff at
    Virtual Office Support, often referred to as virtual assistants, offer
    a variety of services which can be tailored to suit your specific
    needs. We can effectively and professionally assist you with your
    administrative duties, affording you more time to tend to other
    business matters.
    We offer a variety of services from web site design to desktop
    publishing in order to keep your business running smoothly and
    efficiently.
    For more enquiries visit us as
    www.virtualofficeandpa.biz
    or
    Email us: [email protected]
    Kind Regards
    Michael Bamford (Business Development Manager)
    Keywords: virtual office, personal assistant

    elie,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Restricting Keywords for Document types

    Hi  All,
    Is there any user exit or BADI available in Solution Manager  to  restrict the usage of Keywords for various Document types.I want only certain keywords to appear for certain Document type.
    can anybody help me out?
    Thanks in advance
    Venky

    Hi
    In SOLAR01
    Regards
    Venky

  • BW : Virtual key figures

    Hii  experts  ,
    What are virtual key figures .
    Plz explain .
    Thanks & regards ,
    Madhavi S Bichakal

    Dear Madhavi,
    Virtual Key figure
    virtual key figures are key figures within an InfoProvider that are not filled with data. Instead the key figure value is determined at runtime of the query using custom ABAP coding .
    this keyfigure is not populated with the data by using update rules. but this virtual keyfigures will detemine the value only at the runtime of the query.
    nomally when we store the key figure value in the cube as we do it for a normnal keyfigure it gives us the fact(Fixed truth ) information but by using virtual keyfigures we can show the present truth in the report.
    for example :- let say we have a transaction on 01/01/2007 for material M100 @ price of 100 and on 02/01/2007 the price of material M100 has changed to 200.
    when we store price as a normal keyfigure in the cube it will give fact i.e, 100
    but if we design the price as a virtual keyfigure it will give out present truth as 200.
    Virtual characteristics and Key figures are useful if you want to dynamically pouplate data from the fact table to the field which doesn't have any data in the fact table and also used to build an internal security model before the data gets passed to DATA_PROVIDER.
    You can get more information if you review the documentation for enhancement RSR00002.Go to SMOD type in RSR00002 and select the documentation radiobutton..
    Some ABAB coding samples:
    Virtual Characterstics & Key Figures
    Virtual Characteristic problem
    how to read characteristic variable value into virtual characteristic
    How to implement Virtual Characteristics or Virtual key figures
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5#search=%22SAP%20Customer%20Exit%20virtual%20key%20figure%22
    For more info
    You can go through the following links.
    Virtual Key Figures
    sampel code for virtual key figures
    Virtual Key Figure - ZXRSRU02
    Virtual Keyfigures and Characterisitics
    How to implement Virtual Characteristics or Virtual key figures
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20use%20variable%20time%20references%20in%20currency%20conversion
    Search for the keyword virtual keyfigure in the following link :
    https://www.sdn.sap.com/sdn/developerareas/bi.sdn?page=BW_How_To.htm
    Creating Virtual keyfigures
    you create virtual keyfigure just like create normal keyfigure (RSD2),
    populate not via transformation/transfer/update rules, but when query execution via user exit, take a look
    Virtual Characteristic problem
    virtual key figure
    http://www.bwexpertonline.com/downloads/Nissen.doc
    Also
    How to implement Virtual Characteristics or Virtual key figures
    Check post by Sree Rama Tata 
    Hope it helps
    Regards
    Bala

  • Finding all "virtual copies" in my database

    For a couple months now, I have been using virtual copies for certain tasks which I now realize would have been much easier done if I had chosen to use snapshots instead. Now i have dozens of virtual copies of my RAW images scattered all over the place, and I can't seem to find a way to quickly gather them all up into one place so that I can deal with them...Is there a way to do this, or does it really have to be done by manually going through my entire collection of images and keeping an eye out for the page curl icon on each virtual copy's thumbnail? Please advise...Thanks!

    Disagree John
    I'll pollute my keyword the way i like. I don't use KWords a great deal, but for this situation it would provide the ideal solution, so the user does not have to keep chopping and changing between modules as one edits there images.
    That is what keywords are for. To allow the user to filter/view there images according to there own desires. I create a keyword "virtual copy" for all my VC, but it is annoying to have to go back to the library from the develop module to do this for each individual image.
    Also, VC and greyscale are 2 particular and unique editing option provided in the develop module within LR, that require DB management in bulk.

  • I am getting [lecture:null] output while parsing a lecture tag

    I tell you that it was working fine a few days ago but now it's giving the probelem. I am tired any one would have to take a look.
    Suppose rootElement is the document root tag object
    ---------now
    NodeList lectures=rootElement.getElementsByTagName("lecture");
    int allLectures=lectures.getLength();
    if(allLectures==0)
         out.println("you have not created any <b>lecture</b> TAGS.");
         return;
    Element lecture=null;
    lecture=(Element)lectures.item(1);
    out.print(lecture);
    ERROR: the lecture is shown as [lecture:null].. any remidie????
    This was working fine a few weeks ago. But now it's still giving this error using JAXP
    I have tried XML4J too.
    xml code is:
    <?xml version='1.0'?>
    <courseMaterial courseId="1">
    <lecture id="1" title="Polymorphism">
    <paragraph>Polymorphism is the combination of two words, one is "Poly" that means many and other is "Morphism" that means shapes. So the polymorphism means "Many shapes" or "Many faces". So the idea of Polymorphism comes up with the fact that "One thing having many faces".</paragraph>
    <heading>Pointers to base class</heading>
    <paragraph>One of the greater advantages of deriving classes is that a pointer to a derived class is type-compatible with a pointer to its base class. This section is fully dedicated to taking advantage of this powerful C++ feature. For example, we are going to rewrite our program about the rectangle and the triangle of the previous section considering this property:</paragraph>
    <example>Human is a one thing but all humans have different properties.</example>
    <paragraph>The function main creates two pointers that point to objects of class CPolygon, that are ppoly1 and ppoly2. These are assigned to the addresses of rect and trgl, and because they are objects of classes derived from CPolygon they are valid assignations.</paragraph>
    <paragraph>The only limitation of using ppoly1 and ppoly2 instead of rect and trgl is that both ppoly1 and ppoly2 are of type CPolygon* and therefore we can only refer the members that CRectangle and CTriangle inherit from CPolygon. For that reason when calling to the area() members we have not been able to use them (*ppoly1 and *ppoly2).</paragraph>
    <paragraph>To make it possible for the pointers to class CPolygon admit area() as a valid member, this should also have been declared in the base class and not only in its derived ones. (see the following section).</paragraph>
    <heading>Virtual members</heading>
    <paragraph>In order to declare an element of a class which we are going to redefine in derived classes we must precede it with the keyword virtual so that the use of pointers to objects of that class can be suitable.</paragraph>
    <heading>Abstract base classes</heading>
    <paragraph>Basic abstract classes are something very similar to the class CPolygon of our previous example. The only difference is that in our previous example we have defined a valid area() function for objects that were of class CPolygon (like object poly), whereas in an abstract base class we could have simply left without defining this function by appending =0 (equal to zero) to the function declaration.</paragraph>
    </lecture>
    <lecture id="2" title="Polymorphism1">
    <paragraph>Polymorphism is the combination of two words, one is "Poly" that means many and other is "Morphism" that means shapes. So the polymorphism means "Many shapes" or "Many faces". So the idea of Polymorphism comes up with the fact that "One thing having many faces".</paragraph>
    <heading>Pointers to base class</heading>
    <paragraph>One of the greater advantages of deriving classes is that a pointer to a derived class is type-compatible with a pointer to its base class. This section is fully dedicated to taking advantage of this powerful C++ feature. For example, we are going to rewrite our program about the rectangle and the triangle of the previous section considering this property:</paragraph>
    <example>Human is a one thing but all humans have different properties.</example>
    <paragraph>The function main creates two pointers that point to objects of class CPolygon, that are ppoly1 and ppoly2. These are assigned to the addresses of rect and trgl, and because they are objects of classes derived from CPolygon they are valid assignations.</paragraph>
    <paragraph>The only limitation of using ppoly1 and ppoly2 instead of rect and trgl is that both ppoly1 and ppoly2 are of type CPolygon* and therefore we can only refer the members that CRectangle and CTriangle inherit from CPolygon. For that reason when calling to the area() members we have not been able to use them (*ppoly1 and *ppoly2).</paragraph>
    <paragraph>To make it possible for the pointers to class CPolygon admit area() as a valid member, this should also have been declared in the base class and not only in its derived ones. (see the following section).</paragraph>
    <heading>Virtual members</heading>
    <paragraph>In order to declare an element of a class which we are going to redefine in derived classes we must precede it with the keyword virtual so that the use of pointers to objects of that class can be suitable.</paragraph>
    <heading>Abstract base classes</heading>
    <paragraph>Basic abstract classes are something very similar to the class CPolygon of our previous example. The only difference is that in our previous example we have defined a valid area() function for objects that were of class CPolygon (like object poly), whereas in an abstract base class we could have simply left without defining this function by appending =0 (equal to zero) to the function declaration.</paragraph>
    </lecture>
    </courseMaterial>

    what do you expect from this code out.print(lecture); ?
    lecture is an Element, toString() is not implemented, so print correctly displays some fuzzy pointer information, nothing more...

  • Field limit in MDM 5.5?

    Hi There, we are considering implementing a new structure in our products table (MDM5.5) that uses considerably more fields than those which we currently have deployed, we are looking at 200 fields in this table. Is anyone aware of a limit on the number of fields in the products table before we start to run into performance/stability issues etc etc?

    Hello Adam,
    There is no specific limit to the number of fields.
    In terms of performance problems stemming from immense volumes, it is more a combination of multiple parameters: the width of schema (number of fields), number and usage of languages, number of records in main, existence of high volume lookup tables, data profile, property settings (extensive usage of keyword index, sort index etc). of course, there are other factors: business process, landscape design, proper sizing, user's profile and intensity of their work in MDM etc...
    Having 200 fields in the main table certainly is considered as high number but it will not necessarily be a problem.
    Can you please provide some ballpark figures as to the other parameters (number of records in main, number of multilingual fields and number of languages etc)?
    I would suggest also a Data Model Review in order to validate that the business requirements can not be modeled better and the custom structure follows the best practices .
    Best regards,
    Hedda

Maybe you are looking for

  • Data Found In Multiprovider,but No Data in Report

    Hi, I have built a multiprovider on two infocubes(Infocube1,Infocube2).On that I have four reports,the problem is till multiprovider complete data is comming even in one report among tht four I am able to see the data for the few feilds from infocube

  • Embedded font flips in combo box

    I have an Flash builder 4 project with 3.5 backwards compatibility i'm using an mx combobox. as soon as i set an embedded font to it, the drop down gets flipped as if xScaled to -1 i'm embedding my font like this @font-face {     src: url('../libs/fo

  • Want To Capture The File name Using the SQL Loader

    Hi, I Am loading The Data To Staging Table Using The SQL*developer, The File That need to be Loaded Will be One Of The Input To the SQL*Loader Concurrent Program. In One Of The Column Of My staging Table I want To Put The File name. Can We do the Sam

  • Frequent time-outs loading web-pages

    For the last two or three days I have great difficulty getting to web-sites. Occasionally it works OK but most of the time the connection eventually times out. Google searches work OK, e-mail works OK. (I have broadband and airport extreme, OSX 10.4.

  • Trace file

    When we perform this command : Alter database backup controlfile to trace; It generates the necessary command to recreate the control file. My question is, does this command create control file reuse database "db_name" NORESETLOGS ARCHIVELOG ... etc