Inheritance in Java

A thread🧵
📌What is inheritance?
When we want to create a new class and there is already a class that includes some of the code that we want, we can derive our new class from the existing class (and avoid the writing of the same code again). This is referred to as inheritance.
📌Example Image
📌Terms

🔸Superclass/Parent class/Base class-
The class whose features are inherited

🔸Subclass/Child class/Derived class-
The class that inherits the other class features.
📌Java syntax
Using the 'extends' keyword Image
📌Types of inheritance
Can be simply understood through this image Image
If you liked this, make sure to:

1. Follow me @meetjain74

2. Retweet the first tweet

3. Turn on the notifications to never miss these amazing tweets.

Thanks so much for getting to the end of the thread! Let me know your thoughts below

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Meet Jain🦅

Meet Jain🦅 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @meetjain74

4 Jan
Learning Data structures through diagrams

A thread🧵
🔸Arrays Image
🔸Stack Image
Read 10 tweets
29 Dec 21
Coding vs Programming

A thread🧵
As a programmer you might have come across both these words- coding and programming but do you know the actual difference between the two

Let us look at the difference between both these terms now and let me clear your doubts.
Read to the end of the thread!
📌Coding
Coding is basically the act of translating codes from human language to machine-based language. It can also be called a subset of programming since it is the foundation of programming
Read 11 tweets
6 Nov 21
Best sources for app design inspiration

A thread 🧵
#Android
🔸Dribbble
dribbble.com
🔸Behance
behance.net
Read 9 tweets
2 Nov 21
15 Linux commands every programmer should know

A thread🧵
🔸pwd -
To print the present working directory

The command will return an absolute (full) path, which is basically a path of all the directories that starts with a forward slash (/).

An example of an absolute path is /home/username
🔸cd -
To change to a different directory

Example: cd workspace

There are some shortcuts to help you navigate quickly:
-> cd .. to move one directory up
-> cd to go straight to the home folder
-> cd- to move to your previous directory
Read 18 tweets
1 Nov 21
What is an IP address and a MAC address?

A thread 🧵
🔸IP address -
IP stands for Internet Protocol Address. It is a numerical label assigned to each device connected to a computer network that uses Internet Protocol for communication.
The internet needs a way to differentiate between different computers, routers, and websites. IP addresses provide a way of doing so and form an essential part of how the internet works.
Read 15 tweets
31 Oct 21
Git keywords every programmer should know

A thread 🧵
🔸Repository
A repository is like a folder for your project. It contains the collection of the file as well as the history of the changes made to those files. Sometimes Github users shorten this as 'repo'
🔸Branch
A branch is a parallel version of a repository. It is contained within the repository but does not affect the primary or master branch allowing you to work freely without disrupting the 'live' version.
Read 18 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(