🌐
LeetCode
leetcode.com › discuss › interview-question › object-oriented-design › 5321424 › OOPS-REVISION-2-or-JAVA
OOPS REVISION-2 | JAVA - Discuss - LeetCode
Diamond Problem in Inheritance in Java. Difference between Abstraction and Encapsulation , since both are esentially hiding the internal working. Dynamic Polymorphism vs Static Polymorphism. To be continued... Link to the next article : https://leetcode.com/discuss/interview-question/object-oriented-design/5345963/OOPS...
🌐
Medium
medium.com › acing-the-software-engineer-interview › leetcode-systems-questions-a67b654f15ec
Leetcode Object Oriented Programming System Questions | by LiveRunGrow | Acing the Software Engineer Interview | Medium
August 3, 2024 - // Currently not done in the findMatchingPiece algorithm import java.util.*; // Design a jigsaw puzzle algorithm, given a Piece class, a Side class containing sideTypes, and a helper function which returns whether or not two pieces are a match public class PuzzleSolver { public Puzzle matchPieces(Puzzle puzzle){ List<List<Piece>> board = puzzle.getBoard(); List<Piece> freePieces = puzzle.getFreePieces(); int numRows = board.size(); int numCols = numRows > 0 ?
🌐
LeetCode
leetcode.com › discuss › study-guide › 3060677 › List-of-OOP-Problems
List of OOP Problems - Discuss - LeetCode
I learned OOP while preparing for the exam and I wanted to solve a few problems about this topic on leetcode.com. Unfortunately Problems on the site are a bit weak in categorization (or I can't use the site).
🌐
LeetCode
leetcode.com › discuss › post › 4454824 › Top-20-OPP'S-Object-Oriented-Important-Questions-With-Detailed-Answers
Top 20 OPP'S Object Oriented Important Questions With Detailed Answers - Discuss - LeetCode
Answer: The Diamond Problem occurs in multiple inheritance when two superclasses of a class have a common base class, leading to ambiguity in method resolution.
🌐
LeetCode
leetcode.com › discuss › interview-question › object-oriented-design › 3655541 › Top-OOPs-Interview-Questions-in-Java-with-Answers
Top = OOPs Interview Questions in Java with Answers - Discuss - ...
Ans: The technique of creating a new class by using an existing class functionality is called inheritance in Java. In other words, inheritance is a process where a child class acquires all the properties and behaviors of the parent class. ... Ans: Inheritance is one of main pillars of OOPs concept.
🌐
LeetCode
leetcode.com › discuss › general-discussion › 962321 › is-there-a-resource-for-oop-or-practical-coding-questions-andor-solutions
Is there a resource for OOP or "practical coding" questions and/or ...
I know there are questions tagged "design", but these are usually just asking to implement a few methods, and don't really test OOP or library usage of the program such as with Byteboard interviews. While people have posted some in the discussion here tagged "object-oriented design", several of them are actually systems design interviews, and very few have any decent solutions, and they are almost always in Java (nothing for Python).
🌐
Reddit
reddit.com › r/leetcode › object oriented design
r/leetcode on Reddit: Object Oriented Design
June 5, 2024 -

I'm just from a Microsoft interview it was 3 rounds. I did well in leetcode style DSA and system design, but completely bombed in the OOD question round.
Any books or resources to learn how to implement and practice proper OOD question?

The question was easy, problem was I didn't know it was coming 😭😭

Problem;
Object Oriented Design -
Design a coffee maker machine class There is a coffee maker with a screen. We need to add three ingredients into the machine: coffee beans, water and milk.
There are three types of drinks we can make, below are the default recipes:

Espresso: cost 3 coffee beans and 1 water

Americano: cost 2 coffee beans and 3 water

Latte: cost 2 coffee beans, 2 milk and 2 water

When a user comes, on the screen we show available drinks. After the user chooses a drink, the user will be able to customize the amount of ingredients. (For example, after choosing Espresso, the user can change from default to 4 coffee beans and 1 water)

The admin is able to refill the ingredients. The admin and the users interact with the machine via the screen. In the future, we might can support more drink types.

Please design a class with public APIs to represent the coffee maker, which will be called by the screen.

🌐
LeetCode
leetcode.com › discuss › interview-question › 5321129 › OOPS-REVISION-1-or-JAVA
OOPS REVISION - 1 | JAVA - Discuss - LeetCode
Consider the blueprint or template for a car. This blueprint defines the general attributes and behaviors any car should have, like wheels, engine, color, and the ability to drive, stop, and honk. In Oop, a class is like this blueprint.
Find elsewhere
🌐
LeetCode
leetcode.com › discuss › interview-question › 4138942 › Object-Oriented-Programming-System-or-Must-Know
OOPs | Important questions must know.. - Discuss - LeetCode
What is constructor chaining in OOP, and how is it achieved? Answer: Constructor chaining is the process of calling one constructor from another within the same class. It is achieved using the "this" keyword in Java or "self" in some other languages.
🌐
LeetCode
leetcode.com › discuss › post › 4440061 › part-2-top-16-oops-interview-questions-w-vw45
Part 2: Top 16 OOPs interview questions with answers. - Discuss - LeetCode
Based on my previous interview experiences here is the list of most importent oops questions that I have faced. All examples are in cpp. I hope this will be
🌐
LeetCode
leetcode.com › problems › course-schedule › solutions › 307976 › Java-Object-Oriented-Way-of-Solving-Problem!!!
Course Schedule - LeetCode
Course Schedule - There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, bi] indicates that you must take course bi first if you want to ...
🌐
Quora
quora.com › Should-I-learn-OOP-data-structures-and-algorithms-before-practicing-on-LeetCode
Should I learn OOP, data structures, and algorithms before practicing on LeetCode? - Quora
Answer (1 of 3): Theory and practice go together. You cannot understand theory without any practice, and you have nothing to practice with no theory. Start with the simple stuff (variables, types, assignment, loops and conditions, common operations (+ ; - ; * ; / ; % ), then functions, recursions...
🌐
LeetCode
leetcode.com › problem-list › mmza0utr
JAVA QUESTIONS 50 - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
🌐
LeetCode
leetcode.com › problem-list › design
Design - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
🌐
Reddit
reddit.com › r/leetcode › i understand leetcode problems but don't understand how to make programs or how to use object-oriented programming?
r/leetcode on Reddit: I understand leetcode problems but don't understand how to make programs or how to use object-oriented programming?
May 12, 2022 -

If you give me a leetcode problem I can more or less figure out a solution, but that's just a small closed-environment method. I don't understand how to make software, and also don't understand how to use objects. I understand what an object is conceptually, it is blueprint of something that we define using the class structure, but I don't understand how to use it in practice. I know we can give this object a bunch of features that we call state/attributes (example: color, top speed, max health) these are basically like NOUNS, and we can also give this object functions/actions (example: run, punch, fly), this is basically like VERBS. But I have no idea how to combine or use objects, attributes, and functions together to make a full program. I'm struggling to understand how you guys actually make software using these concepts? Also other things that confuse me, when and why do we use an initializer method and when and why do we use a main method?

How do you use classes, objects, attributes, functions together to make software?

What's a good practice project that uses all of this?