Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Double inheritance  (Read 1183 times)

0 Members and 1 Guest are viewing this topic.

Kyoya

  • Newbie
  • *
  • Posts: 7
    • View Profile
Double inheritance
« on: October 25, 2016, 08:26:04 pm »
Hi, I have a short question. Is it possible to do something like this:
class A : public sf::Drawable;
class B : public A;
B object;
window.draw(object);
 
Thank you in advance.


Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Double inheritance
« Reply #1 on: October 25, 2016, 09:06:32 pm »
Of course you can. But why not just try it yourself, and see the result?
Laurent Gomila - SFML developer

 

anything