Fundamentals Program/C#/Non-primitive data types/Classes Methods Topic 15 of 30 in C# Methods are functions that belong to a class and define the behavior of objects. They encapsulate code that can be called to perform specific tasks. More in C#Primitive data typesAccessorsForeachForTypesIntFloatBoolcharValuesLiteralNon-primitive data typesStructsClassesMethodsFieldsData structuresArraysListsstringsControl FlowLoopsConditionalselse ifreturnElseifExpressions & OperatorsArithmeticAssignment PreviousClasses NextFields All 48 topics in the Fundamentals Program