Python Forum
Using one child class method in another child class
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using one child class method in another child class
#2
To do that, first, we need to create an object of “FirstClass” in the main method of the “SecondClass”. Once an object of the “FirstClass” is created, then we can invoke any method or attribute of the “FirstClass” within the “SecondClass” using that object.
Reply


Messages In This Thread
RE: Using one child class method in another child class - by Vadanane - Jan-11-2023, 12:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Class and methods ebn852_pan 5 289 1 hour ago
Last Post: deanhystad
  Loops and Child Attributes antweeman82 3 283 May-13-2024, 11:08 AM
Last Post: antweeman82
  [SOLVED] [listbox] Feed it with dict passed to class? Winfried 3 248 May-13-2024, 05:57 AM
Last Post: Larz60+
  Class and methods Saida2024 2 253 May-13-2024, 04:04 AM
Last Post: deanhystad
  How does this code create a class? Pedroski55 6 609 Apr-21-2024, 06:15 AM
Last Post: Gribouillis
  class definition and problem with a method HerrAyas 2 328 Apr-01-2024, 03:34 PM
Last Post: HerrAyas
  Printing out incidence values for Class Object SquderDragon 3 375 Apr-01-2024, 07:52 AM
Last Post: SquderDragon
  class and runtime akbarza 4 474 Mar-16-2024, 01:32 PM
Last Post: deanhystad
  Operation result class SirDonkey 6 638 Feb-25-2024, 10:53 AM
Last Post: Gribouillis
  Reading and storing a line of output from pexpect child eagerissac 1 4,354 Feb-20-2024, 05:51 AM
Last Post: ayoshittu

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020