harish reddy

harish reddy

  • NA
  • 11
  • 1.4k

Variables not accessible by Child class from base class

Aug 22 2020 6:39 AM
Pls see the attached snap for pictures and problem.
 
Kindly guide.
  1. namespace GTAC_Examples  
  2. {  
  3. public class Calling_Methods  
  4. {  
  5. public static Session thissession = Session.GetSession();  
  6. Component root = workPart.ComponentAssembly.RootComponent;  
  7. public static void Main()  
  8. {  
  9. Xxxxx  
  10. }  
  11. namespace DrawingPractice  
  12. {  
  13. class Designing_Methods: Calling_Methods  
  14. {  
  15. thissession -> not coming  
  16. root -> not coming?  
  17. }  
but both the Classes are from the same Project. I am unable to access the variables “thissession” and “root” in the derived class even though I gave base class reference in derived class.. Pls guide.h the Classes are from the same Project. I am unable to access the variables “thissession” and “root” in the derived class even though I gave base class reference in derived class.. Pls guide.
 
Both the Classes are from the same Project. I am unable to access the variables “thissession” and “root” in
 
Both the Classes are from the same Project. I am unable to access the variables “thissession” and “root” in the derived class eventhough I gave base class reference in derived class.. Pls guide.
 
the derived class eventhough I gave base class reference in derived class.. Pls guide.

Attachment: Capture.zip

Answers (2)