Grade 12 Flashcards
Member functions are:
used to add additional functions to a class
What are Static members?
Defines unchanging values In objects
Instance Variables are:
a variable defined for an instance in a class.
What is an object?
Object: an instance of a class that manipulates methods
What is a parameter?
Parameter: a variable used to add inputed data to the function
What methods can’t be overridden?
-privet methods
-static methods
-final methods
Abstract classes are?
Classes that cannot create objects but only inherit them, they can have abstract/non abstract methods.
Dynamic binding is?
Dynamic binding: creates the objects of a base class but creates it with different derived classes. You cannot instantiate concret objects.
Keyword to override compilers rules
.super()
Can Static methods be overridden (T or F)
False
Redifining methods that a subclass would inherit is called
Overriding
What is interface?
Interface: is similar to a class, but all methods must be abstract and all objects must be static or final variables
4 rules for abstract classes?
- it cannot be instantiated
- used be the keyword “abstract”
- can have constructors, static and final methods
- can have abstract or non abstract methods
What is exception handling?
Exception handling: is the ability of the program to catch errors and handle them while continuing to run
What is reoccursion?
Recursion: a method that makes the function call itself. Used for breaking down complicated problems down into simple problems