10. C# - OOP

CLASSES: // like functions

class className

{

things

}


FIELDS: // variables that goes inside classes

private string name;

private const int hourlyRate;


private // only class can use the fields

public // allows other classes to access the field/property

protected

internal

Comments