Methods in Struct data type

Hello all
In SystemVerilog, “struct” and “class” are a collection of data types. a struct is a static object and class is a dynamic object.
why task and function are not allowed in struct?

In reply to SriGanesh D:

Because.

SystemVerilog is a blend of Verilog, C and Java, and its Object-Oriented Programming concepts came from Java, which does not have structs.

BTW, a struct is a data type that could have any kind of lifetime. (i.e. a struct as a member of a class would have a dynamic lifetime)