Tag: oop

4813 What are metaclasses in Python? 2008-09-19T06:10:46.830

2854 What is the difference between @staticmethod and @classmethod? 2008-09-25T21:01:57.843

2071 Understanding Python super() with __init__() methods 2009-02-23T00:30:08.570

1555 What is the difference between an interface and abstract class? 2009-12-16T08:15:15.523

1502 What is Inversion of Control? 2008-08-06T03:35:27.380

1498 What's the difference between a method and a function? 2008-09-30T23:45:10.007

1382 Prefer composition over inheritance? 2008-09-08T01:58:15.017

1373 What is the difference between an abstract function and a virtual function? 2008-12-24T14:11:43.377

1362 Meaning of @classmethod and @staticmethod for beginner? 2012-08-29T13:37:33.443

1352 Why use getters and setters/accessors? 2009-10-14T18:20:56.863

1247 Interface vs Abstract Class (general OO) 2009-04-17T16:42:38.523

1237 Passing Data between View Controllers 2011-03-06T12:43:57.183

1067 Why not inherit from List<T>? 2014-02-11T03:01:36.297

1001 Naming Classes - How to avoid calling everything a "<WhatEver>Manager"? 2009-12-08T12:55:28.710

990 What are the differences between type() and isinstance()? 2009-10-11T03:50:54.997

973 Does functional programming replace GoF design patterns? 2008-11-29T20:08:46.620

924 What is the purpose of self? 2010-04-25T20:22:28.587

875 What is the difference between old style and new style classes in Python? 2008-09-10T18:01:27.163

872 What is the difference between public, private, and protected? 2010-12-05T22:13:14.120

773 When should you use a class vs a struct in C++? 2008-09-10T16:29:54.217

764 What is a mixin, and why are they useful? 2009-02-10T18:50:42.337

731 What does it mean to "program to an interface"? 2008-12-21T00:48:59.113

722 Interface vs Base class 2008-09-11T15:20:30.803

721 What is an example of the Liskov Substitution Principle? 2008-09-11T15:17:38.983

708 Functional programming vs Object Oriented programming 2010-01-16T21:35:48.817

672 Examples of GoF Design Patterns in Java's core libraries 2009-11-04T13:45:52.877

670 What techniques can be used to define a class in JavaScript, and what are their trade-offs? 2008-12-22T23:07:04.047

604 Python __init__ and self what do they do? 2009-03-09T05:09:51.217

597 Monad in plain English? (For the OOP programmer with no FP background) 2010-04-24T13:42:54.730

540 Interview: Can we instantiate abstract class? 2012-12-02T16:01:58.503

523 Adding a Method to an Existing Object Instance 2008-08-04T02:17:51.780

523 How to get a JavaScript object's class? 2009-08-08T18:11:57.207

523 How should a model be structured in MVC? 2011-05-03T00:28:42.547

484 How to call a parent class function from derived class function? 2008-12-10T19:35:45.430

475 What is polymorphism, what is it for, and how is it used? 2009-06-23T08:14:21.620

452 JavaScript: Class.method vs. Class.prototype.method 2009-10-28T03:59:08.907

443 What does 'super' do in Python? 2008-10-21T18:13:15.027

437 Can you write object-oriented code in C? 2008-12-09T04:02:40.557

433 Use of .apply() with 'new' operator. Is this possible? 2009-10-22T12:15:09.433

430 What is the difference between class and instance methods? 2009-06-27T20:48:43.870

414 Why Doesn't C# Allow Static Methods to Implement an Interface? 2008-11-03T15:42:00.260

411 JavaScript private methods 2008-09-11T01:12:39.030

406 How should I have explained the difference between an Interface and an Abstract class? 2013-09-13T03:50:40.760

396 What are the differences between struct and class in C++? 2008-09-18T14:09:58.947

396 Constructors in JavaScript objects 2009-07-11T16:11:42.207

383 What does the 'static' keyword do in a class? 2009-01-05T17:41:38.457

377 Should we @Override an interface's method implementation? 2008-10-17T15:18:01.980

369 Difference Between Cohesion and Coupling 2010-06-21T14:01:45.180

367 When to use an interface instead of an abstract class and vice versa? 2009-01-26T08:47:38.607

340 What's wrong with overridable method calls in constructors? 2010-08-04T09:41:43.870

326 When should you use 'friend' in C++? 2008-08-20T05:29:32.793

326 Use of alloc init instead of new 2009-04-05T23:26:06.450

315 Polymorphism vs Overriding vs Overloading 2008-09-30T19:29:02.460

304 Is there a performance difference between i++ and ++i in C++? 2008-08-24T07:14:22.243

303 What is the difference between __init__ and __call__ in Python? 2012-03-12T08:09:45.493

295 difference between abstraction and encapsulation? 2009-04-12T20:15:02.410

285 When should I use a struct instead of a class? 2008-09-17T17:20:49.293

280 Interface or an Abstract Class: which one to use? 2009-11-29T06:21:01.630

271 Advantages of using prototype, vs defining methods straight in the constructor? 2010-12-22T10:40:20.817

266 Does JavaScript have the interface type (such as Java's 'interface')? 2010-09-14T15:16:45.787

265 How do I copy items from list to list without foreach? 2009-12-23T11:17:57.230

265 Why is it necessary to set the prototype constructor? 2011-12-10T02:12:09.683

261 Chain-calling parent constructors in python 2009-05-24T15:54:09.747

250 Benefits of prototypal inheritance over classical? 2010-05-10T07:22:04.970

249 Object Oriented Javascript best practices? 2009-05-25T15:52:51.517

246 What is the difference between aggregation, composition and dependency? 2009-10-29T14:50:09.290

241 Abstract class in Java 2009-08-24T06:26:40.643

236 Explaining Python's '__enter__' and '__exit__' 2009-12-31T07:07:18.770

228 What does it mean that Javascript is a prototype based language? 2008-10-09T07:22:57.540

226 Class vs. static method in JavaScript 2011-10-08T02:58:37.573

223 How do you create a static class in C++? 2008-08-12T23:35:00.613

220 Are getters and setters poor design? Contradictory advice seen 2009-02-19T12:33:20.000

219 What is the difference between loose coupling and tight coupling in the object oriented paradigm? 2010-05-14T05:32:20.990

216 Is it bad practice to make a setter return "this"? 2009-08-28T04:21:58.527

215 How do you design object oriented projects? 2009-07-08T22:10:25.717

215 Do subclasses inherit private fields? 2011-01-17T17:34:18.050

207 What is the point of interfaces in PHP? 2008-08-21T16:35:20.657

207 When should I use "this" in a class? 2010-03-09T17:57:04.147

204 How to mark a class as Deprecated? 2008-11-24T15:37:59.457

203 Why is the C++ STL is so heavily based on templates? (and not on *interfaces*) 2009-06-24T17:43:24.947

195 What is the best method to merge two PHP objects? 2009-01-18T18:55:18.720

194 Creating the Singleton design pattern in PHP5 2008-10-15T00:33:27.650

193 Why does C# not provide the C++ style 'friend' keyword? 2008-10-15T03:23:43.360

191 How do I declare class-level properties in Objective-C? 2009-03-30T04:09:04.977

191 String, StringBuffer, and StringBuilder 2010-06-04T03:28:55.043

187 Why are unnamed namespaces used and what are their benefits? 2008-12-10T20:03:05.687

187 Missing return statement in a non-void method compiles 2013-05-28T10:32:48.573

186 Struct like objects in Java 2008-08-31T09:17:01.737

186 How will I know when to create an interface? 2009-01-14T19:03:23.833

186 Explanation of the UML arrows 2009-12-09T13:53:24.947

184 Getter and Setter? 2010-12-18T15:29:32.280

181 Why does Python code use len() function instead of a length method? 2008-10-25T22:37:03.223

181 prototype based vs. class based inheritance 2009-05-03T01:39:10.043

178 How to compare objects by multiple fields 2008-12-15T19:56:43.767

177 Using the "final" modifier whenever applicable in Java 2008-09-26T05:05:59.070

173 Aspect Oriented Programming vs. Object-Oriented Programming 2008-10-24T09:00:46.373

173 C++ equivalent of instanceof 2009-02-01T09:32:48.990

173 Why should I prefer to use member initialization list? 2009-05-29T15:56:23.763

173 How do I get a PHP class constructor to call its parent's parent's constructor 2009-10-13T00:09:04.930