the pancreas is considered a heterocrine gland because it has both endocrine and exocrine functions.
the pancreas functions as an endocrine gland by secreting glucagon and insulin
the pancreas functions as an exocrine gland by secreting pancreatic juices to the duodenum.