1.Classes are pretty much the same as Structs tho… Classes are types that not only hold data they provide functions that work within that data as well.
-
Methods or otherwise knows as Member Functions are functions defined inside a class. They can be defined inside or outside the class definition.
-
Class works the smae way as a Struct but you write Class.
class ClassName { //do some stuff here int element; string element2; }
- An Object is an abstract data type created by a dev. It can contain multiple properties and methods and can contain other Objects.