Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Double inheritance
Print
Pages: [
1
]
Author
Topic: Double inheritance (Read 1265 times)
0 Members and 1 Guest are viewing this topic.
Kyoya
Newbie
Posts: 7
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.
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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?
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Double inheritance