C# Objects (Teamtreehouse) Flashcards
What is Object Oriented Programming (OOP)?
Object-oriented programming (OOP) is a programming language model organized around objects rather than “actions” and data rather than logic.
What is instantiation?
Creating an object or an instance of a class from class.
What is a constructor?
Constructors enable the programmer to set default values of instance variables and create an instance of a class.
What are static methods?
Static methods are called directly on a class, rather than an object.
What are the core principles of OOP?
Encapsulation, Inheritance, Polymorphism, Abstraction.
What is Inheritance?
Inheritance is the concept that when a class of objects is defined, any subclass that is defined can inherit the definitions of one or more general classes.
What is encapsulation?
Encapsulation is an Object Oriented Programming concept that binds together the data and functions that manipulate the data, and that keeps both safe from outside interference and misuse.
What does DRY stand for?
Don’t Repeat Yourself.
What is code smell?
Code smell indicates that there is a potential problem with how the software is designed.
What is polymorphism?
Polymorphism describes a pattern in which classes have different functionality while sharing a common interface.