Абстрактный класс не может быть создан, поэтому сделайте это:
virtual ostream& operator<<(ostream& stream, const Base &objectArg) = 0;
Виртуальная функция должна быть функцией-членом экземпляра, тогда как функция Friend не является функцией-членом, поэтому она не может быть объявлена как виртуальная.
Точно так же статическая функция не может быть виртуальной, поскольку ее метод класса не метод экземпляра.
Мое предложение:
class Base {
public:
virtual ostream& print (ostream& stream) const = 0;
};
class Derived :public Base {
public:
virtual ostream& print (ostream& stream) const { //do something }
};
ostream& operator <<(ostream& stream, const BaseMessage &objectArg)
{
return objectArg.print(stream);
}
It's because you have told the radio button to be 0% tall - which is 0px - which is not there.
You can override this by telling the height and width to be 'auto' which will reset them (unless there's a rule which is more specific somewhere else in the stylesheet)
input.myradio {
border:none;
width:auto;
height:auto;
}
Why do you have a height and width specified of 0% for them? I'm guessing that is why IE and Chrome are not showing the radio button,s because they have a size of 0 pixels.
Я предполагаю, что это "ширина: 0%; высота: 0%" в вашем классе input.myradio. вам нужны ширина и высота.
Попробуйте следующее:
input.myradio {border:none;width:1em;height:1em;}