---
title: "Mayank Mudgal (@Mayank1728) | Hashnode"
description: "FrontEndDeveloper and reader! Read the latest articles by Mayank Mudgal on Hashnode."
url: "https://hashnode.com/@Mayank1728"
---

@Mayank1728

# Mayank Mudgal

@Mayank1728 · Joined May 2022

FrontEndDeveloper and reader!

### [How to apply specific Sorting](https://mayank1728.hashnode.dev/how-to-apply-specific-sorting?utm_source=hashnode&utm_medium=feed)

vector<int> salary = {100, 34, 90, 1, 14, 65, 22, 21, 90}; Q: Sort this array in NON-decreasing order.A: using the in-built sort function we can write // we need to include bits/stdc++ library sort(v.begin(), v.end()); // {1, 14, 21, 22, 34, 65, 90,...

2 min read · [mayank1728.hashnode.dev](https://mayank1728.hashnode.dev/how-to-apply-specific-sorting?utm_source=hashnode&utm_medium=feed)

[Jan 29, 2024](https://hashnode.com/posts/how-to-apply-specific-sorting/65b7e2e43aa2fa45db389637)

### [Object Oriented Programming in Java - Part 5](https://mayank1728.hashnode.dev/object-oriented-programming-in-java-part-5?utm_source=hashnode&utm_medium=feed)

Q: What is Polymorphism ?A: Poly means "many" and morphism means "form". Polymorphism means "Many forms". Formal definition, Data to be processed in more than 1 form. Note: Java DOESN'T support operator overloading. Q: What are 2 types of Polymorphis...

3 min read · [mayank1728.hashnode.dev](https://mayank1728.hashnode.dev/object-oriented-programming-in-java-part-5?utm_source=hashnode&utm_medium=feed)

[Nov 3, 2023](https://hashnode.com/posts/object-oriented-programming-in-java-part-5/6544d481e4a037098b8c854b)

### [Object Oriented Programming in Java - Part 3](https://mayank1728.hashnode.dev/object-oriented-programming-in-java-part-3?utm_source=hashnode&utm_medium=feed)

Q: What are 4 pillars of OOP ?A: Inheritance, Polymorphism, Encapsulation and Abstraction. Q: What is inheritance and why do we need it?A: What is the first picture that comes to your mind when I say "Alcohol Beverage". It could be anything like vodk...

4 min read · [mayank1728.hashnode.dev](https://mayank1728.hashnode.dev/object-oriented-programming-in-java-part-3?utm_source=hashnode&utm_medium=feed)

[Nov 1, 2023](https://hashnode.com/posts/object-oriented-programming-in-java-part-3/65424e1fabae3b68227cee0a)

### [Object Oriented Programming in Java- Part 2](https://mayank1728.hashnode.dev/object-oriented-programming-in-java-part-2?utm_source=hashnode&utm_medium=feed)

Q: What are packages and why do we need them ?A: Provides organization and structure to code. You can have classes with same name in different and avoid collision. Lastly access control and modularity. Q: How to export import and create a package ?A:...

4 min read · [mayank1728.hashnode.dev](https://mayank1728.hashnode.dev/object-oriented-programming-in-java-part-2?utm_source=hashnode&utm_medium=feed)

[Oct 28, 2023](https://hashnode.com/posts/object-oriented-programming-in-java-part-2/653d3e73aa64ae78750acfee)

### [Object Oriented Programming in Java - Part 1](https://mayank1728.hashnode.dev/object-oriented-programming-in-java-part-1?utm_source=hashnode&utm_medium=feed)

Q: What are classes ?A: Classes are logical construct AKA Blueprint. Similar to blueprint/Architecture/Map of a house or car etc. Q: What are Objects ?A: Objects are physical reality AKA living entities. Analogous to ACTUAL car or House. Q: What happ...

5 min read · [mayank1728.hashnode.dev](https://mayank1728.hashnode.dev/object-oriented-programming-in-java-part-1?utm_source=hashnode&utm_medium=feed)

[Oct 27, 2023](https://hashnode.com/posts/object-oriented-programming-in-java-part-1/653b7bb06c19a6f1c321b96c)
