oop 1,159

  1. What are metaclasses in Python?
  2. What is the difference between @staticmethod and @classmethod in Python?
  3. Understanding Python super() with __init__() methods
  4. What is the difference between an interface and abstract class?
  5. Difference between a method and a function
  6. Prefer composition over inheritance?
  7. Why use getters and setters/accessors?
  8. What is the difference between an abstract function and a virtual function?
  9. Passing Data between View Controllers
  10. Meaning of @classmethod and @staticmethod for beginner?
  11. Interface vs Abstract Class (general OO)
  12. Why not inherit from List<T>?
  13. Does functional programming replace GoF design patterns?
  14. What are the differences between type() and isinstance()?
  15. Naming Classes - How to avoid calling everything a “<WhatEver>Manager”?
  16. What is the purpose of self?
  17. What is the difference between old style and new style classes in Python?


  18. What is the difference between public, private, and protected?
  19. What is a mixin, and why are they useful?
  20. Interface vs Base class
  21. When should you use a class vs a struct in C++?
  22. What does it mean to “program to an interface”?
  23. Examples of GoF Design Patterns in Java's core libraries
  24. Functional programming vs Object Oriented programming
  25. What techniques can be used to define a class in JavaScript, and what are their trade-offs?
  26. What is an example of the Liskov Substitution Principle?
  27. Monad in plain English? (For the OOP programmer with no FP background)
  28. Python __init__ and self what do they do?
  29. Interview: Can we instantiate abstract class?
  30. How should a model be structured in MVC?
  31. Adding a Method to an Existing Object Instance
  32. How to get a JavaScript object's class?
  33. How to call a parent class function from derived class function?
  34. What is polymorphism, what is it for, and how is it used?
  35. JavaScript: Class.method vs. Class.prototype.method
  36. What is the difference between class and instance methods?
  37. Use of .apply() with 'new' operator. Is this possible?
  38. Can you write object-oriented code in C?
  39. Why Doesn't C# Allow Static Methods to Implement an Interface?
  40. What does 'super' do in Python?
  41. Constructors in JavaScript objects
  42. JavaScript private methods
  43. What are the differences between struct and class in C++?
  44. How should I have explained the difference between an Interface and an Abstract class?
  45. Should we @Override an interface's method implementation?
  46. What does the 'static' keyword do in a class?
  47. When to use an interface instead of an abstract class and vice versa?
  48. Use of alloc init instead of new
  49. What's wrong with overridable method calls in constructors?
  50. When should you use 'friend' in C++?