| Front | Back |
What is OOP? | Way of programming that defines Object and their interactions to simulate the real world. |
Key practices of OOP? |
- Encapsulation
- Inheritance
- Polymorphism
- Modularity
|
Give an example of Inheritance? | Defining base class with commong members:
Class Cars{
String maker;
}
Class BMW inherits Cars
{
}
Class BMW inherits members |
What is the difference between a Stack and a Queue? | Stack adheres to LIFO and Queue is FIFO. |