Attributes
They describe an objects appearance
The current state of an object
the current value of all of its attributes.
abstraction
A representation of the appearance and behaviour of an object in a computer program
A class
a template that describes the structure of an object. We
cannot create an object before its structure is defined.
Instances of a class
Individual members of a class
Classes make provision for
-Attributes (data fields)
-Properties (indirect access to data fields)
-Methods (behaviour)
Members
The fields, properties and methods of a class a
Client
A piece of code that uses
another piece of code.
interface
-They defines the members of a class without specifying details thereof.
-They may contain only properties and methods
Abstract class
-It provides a structure from which concrete classes can inherit.
-We cannot instantiate an object from an abstract class directly,but rather through a derived class.
-An abstract class is a bit of a hybrid between an interface and a base class as it defines the members but may also provide the details thereof.
Static class
-It is one from which no instance can be created.
-The properties and methods of a static class are qualified by the class name and not an object.
A struct
-Its like a class with the main difference being the way in which it is saved in memory
-A struct instance contains the data itself
We refer to classes as
Reference types
We refer to structs as
Value types
A constructor
A method that is used when an instance of a class is created (object is
instantiated).
Signature
The signature of a method refers to its name and the parameter types
Overloading
Method with the same name but different signatures
An abstract method
-It has no implementation (body)
-It must be overridden in derived classes providing an implementation for it
A virtual method
-It has implementation but it may be overriden in derived classes
Camel case
The writing of separate words in an identifier without spaces with each succeeding word starting with a capital.
-The first letter may be either lowercase or
uppercase
Pascal case
A special version of camel case with the added requirement that the first letter
must be uppercase.
The Hungarian notation i
The same as camel case but with the requirement that the identifier
starts with a prefix to indicate the type or class of the object or variable