Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Extends

New Here ,
Aug 08, 2013 Aug 08, 2013

Hi guys!

This might be a dumb question, but I think I'm really missing something...

Lets say I have 3 classes A B and C, class A extends C and class B also extends C.

Now, does this mean that class C is created 2 times in memory (one for A and one for B) or class C is only created once and then shared between A and B?

Thank you!

TOPICS
ActionScript
534
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 08, 2013 Aug 08, 2013

C is added to memory once and reused.

Translate
Community Expert ,
Aug 08, 2013 Aug 08, 2013

C is added to memory once and reused.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 08, 2013 Aug 08, 2013

Thought so...Thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 08, 2013 Aug 08, 2013
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines