//Remember The data Structure Hash Table ≈ The hash table is a DS //which permits us to store information. Hash Table have what's called //a hash function. It is used to compute an index where the value can be //found at. //Obtaining hash Code method is useful for only to put our object in a hash table //If you're not planning to do that just do this: /* * public override int GetHashCode() * { * return base.GetHashCode(); * } */ //We have to create a method that determines whether //an object has already been put into a hash code. //This is because it will have the same hashed value. public override int GetHashCode() { return(TheFullName.GetHashCode()); //Hashing works like this: if we take the same input and run it through //the function the ouput will be the same everytime. If two obj have //the same Full Name therefore the hash function should give us the same value }
public override int GetHashCode() { return(TheFullName.GetHashCode()); }
static void Wr_i(object m) => Console.Write(m); //Includes a new line char //Inherit and Override public override void overrideThisPlease() { Wr_L("Howdy Howdy y'all my I just overrode the User meth and by I, I am: " + TheFullName.ToUpper()); }
static void Wr_i(object m) => Console.Write(m); //Includes a new line char //Inherit and Override public override void overrideThisPlease() { Wr_L("Howdy Howdy y'all my I just overrode the User meth and by I, I am: " + TheFullName.ToUpper()); // do not put parenthesis after TheFull Name //Error Generated: Expression denotes a `value', //where a `method group' was expected }