Abstraction
Abstraction
SIT Internal
LEARNING OUTCOMES
• What is abstraction?
• Need
W H AT I S A B ST R AC T I O N ?
ABSTRACTION
simplified representations of objects
Abstract Abstract
Classes Methods
ABSTRACT CLASSES
ABSTRACT METHODS
ABSTRACT METHODS
}
SIT Internal
ABSTRACT METHODS
ABSTRACT METHODS
ABSTRACT CLASSES
CONCLUSION
• Abstraction: lets you use objects in a way that hides the details you don't need to
know, making it easier to work with complex systems and allowing you to focus on
the important aspects of your code
• Abstract Classes:
– classes that cannot be instantiated directly
– serve as blueprints or templates for creating concrete (non-abstract) subclasses
• Abstract Methods:
– declared without a method body
– Subclasses must provide implementations for all abstract methods.