C++ Classes Flashcards
Though functionally identical, what is the biggest difference between structs and classes?
Class defaults to private, while struct defaults to public
What is the difference in use case between structs and classes
Classes are best for data abstraction and inheritance, while best used for data grouping and access.
What are the two basic constructors?
Default (no args) and with input
What is the abbreviation of Constructor?
CTOR
What are the non-basic Constructors?
What is Uniform Initialization Syntax
How do you define a Class?
How do you define a Struct?
What is the “this” keyword?
What is the syntax for using the “this” keyword?
Out Placeholder
Out Placeholder
Out Placeholder
What is the constructor keyword “=default”?
What is the ctor keyword “=delete”?