Pergunta de entrevista da empresa Synechron

What are the diferent access modifiers in object oriented programming and ehat are the differences.

Resposta da entrevista

Sigiloso

17 de fev. de 2016

public-The type or member can be accessed by any other code in the same assembly or another assembly that references it. private-The type or member can be accessed only by code in the same class or struct. protected-The type or member can be accessed only by code in the same class or struct, or in a class that is derived from that class.