PDF Notes: OOP_03_24_en

    Master this deck with 10 terms through effective study methods.

    Generated from uploaded pdf

    Created by @r1_

    What defines a class in C#?

    Serves as a blueprint for creating objects.

    What is an instance variable?

    Stores information unique to each object.

    How do instance methods differ from instance variables?

    Methods define behaviors, while variables store data.

    What is the purpose of private access in class fields?

    Encapsulates data and restricts external access.

    What happens if a local variable is declared inside a method?

    Its value is lost when the method terminates.

    What are auto-implemented properties?

    Simplify property declaration without explicit backing fields.

    What is the role of the 'this' reference in a class?

    Refers to the current instance of the class.

    What distinguishes instantiable classes from application programs?

    Instantiable classes can create objects; application programs contain a Main() method.

    What are the key features of objects in OOP?

    Abstraction, attributes, and behaviors.

    What is a class client?

    A program that creates and uses objects from another class.