Search Result

Collapse
5 results in 0.0015 seconds.
Keywords
Members
Tags
polymorphism
  •  

  • bums735 bums735
    started a topic polymorphism, is their a better way to do this
    in C

    polymorphism, is their a better way to do this

    hello everyone, im a bit new to c++, im missing a concept of polymorphism. my problem is i cant figure out another way to override a method.
    Code:
     
    #include <iostream>
    class Base {
    public:
       Base();
       ~Base();
    public:
       virtual void OutPut() {std::cout << "Base" << std::endl;}
    };
    
    class Derived : Base {
    public:
       Derived();
    ...
    See more | Go to post

  • Franna Tech
    started a topic How to extend controls with base class?

    How to extend controls with base class?

    Hi

    I have a BaseClass

    Code:
    public class BaseClass
    {
        [XmlIgnore]
        public PropertyGrid PropertyGridControl
        [XmlAttribute("Name")]
        public string Name
        { get; set; }
    }
    Then I have multiple classes that I want to derive from controls and inherit / implement the BaseClass.

    Code:
    public class MyLabel : Label
    {   
    }
    
    public
    ...
    See more | Go to post
    Last edited by Niheel; Feb 27 '11, 06:04 AM.

  • How to change the way the Vector2 is presented in a file upon serialization?

    Hello,

    Current output result when I serialize my asset's class in XNA is of the following form:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <XnaContent xmlns:Game_Entities="HPC_AsteroidGame.Game_Entities">
      <Asset Type="Game_Entities:GameEntity">
        <ListOfSprites />
        <Center>0 0</Center>
        <Position>0 0</Position>
    ...
    See more | Go to post

  • Custom Object data binding, polymorphism and inheritance

    I'm hoping that someone out there can give me some guidance here, and I hope that I am explaining this properly.


    Here is my scenerio:

    I have a BaseData object that serves as an abstract object for all my business objects. Notice there is an overridable method on the object.

    Code:
    Public Class BaseData
    
    		Dim msDataID As String
    		Dim msDescription As String
    ...
    See more | Go to post

  • cstacy
    started a topic problem with classes: client v. web service

    problem with classes: client v. web service

    My application sometimes wants to process objects it gets from a web service, but sometimes wants to process purely local objects. In either case, the objects implement the same protocol. For example, both locally created and ws created objects have a "title" property that I want to read.

    I would like to have a shared definition of this common protocol, and I would like to call the same method names on both kinds of...
    See more | Go to post
Working...