Question: Question # 3 Given the following SystemVerilog code: class A; integer j = 5 ; endclass Class B; integer i = 1 1 ; A

Question #3
Given the following SystemVerilog code:
class A;
integer j=5;
endclass
Class B;
integer i=11;
A a= new;
endclass
function integer test;
B b1= new;
B b2= new b1;
b2.i=10;
b2.a.j=40;
test2= b1.i;
test =b1.a.j;
endfunction
What is the final value of test?
What is the final value of test2?
 Question #3 Given the following SystemVerilog code: class A; integer j=5;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!