#what is inheritance
Explore tagged Tumblr posts
biggest-gaudiest-patronuses · 2 months ago
Text
suspicious of any religion claiming humans should deny themselves enjoyment and earthly pleasures. like no every person I have ever met needs more of those actually
6K notes · View notes
espeonkin · 4 months ago
Text
Tumblr media
4K notes · View notes
rahulswriteups · 1 year ago
Text
Understanding Inheritance in Java: Exploring Types and Examples
Tumblr media
In the world of Java programming, inheritance is a powerful concept that allows developers to create a relationship between classes, fostering code reuse and organization. In this blog, we'll delve into what inheritance is in Java, explore its types, and provide practical examples to make it all crystal clear.
What is Inheritance in Java?
Inheritance is a key pillar of Object-Oriented Programming (OOP), enabling a class to inherit properties and behaviors from another class. The class granting the inheritance is known as the superclass or parent class, and the class receiving the inheritance is the subclass or child class. This mechanism promotes the reuse of code and establishes a hierarchy among classes.
Types of Inheritance in Java:
1. Single Inheritance:
In single inheritance, a subclass inherits from only one superclass. Let's illustrate this with a simple example:
Tumblr media
Here, Dog is the subclass inheriting from the Animal superclass. The Dog class can access the eat() method from the Animal class.
2. Multiple Inheritance (Through Interfaces):
Java doesn't support multiple inheritance for classes, but it does support it through interfaces. Consider the following:
Tumblr media
Here, the Human class implements both the Walkable and Swimmable interfaces, achieving a form of multiple inheritance.
3. Multilevel Inheritance:
In multilevel inheritance, a class inherits from another class, and then another class inherits from the second class, forming a chain. Let's see an example:
Tumblr media
In this scenario, C inherits from B, and B inherits from A.
4. Hierarchical Inheritance:
In hierarchical inheritance, multiple classes inherit from a single superclass, creating a hierarchy. Consider the following:
Tumblr media
Here, both Circle and Rectangle inherit from the Shape superclass.
Benefits of Inheritance:
Code Reusability: Inheritance allows you to reuse code from existing classes, minimizing redundancy.
Method Overriding: Subclasses can provide specific implementations for methods inherited from the superclass.
Polymorphism: Objects of the subclass can be treated as objects of the superclass, enhancing flexibility.
Modularity: Inheritance aids in creating modular and easily understandable code by organizing classes into a hierarchical structure.
Conclusion
In conclusion, understanding inheritance in Java is fundamental to writing efficient and organized code. Whether you're a beginner or an experienced developer, incorporating inheritance into your Java programming skills can significantly enhance your ability to create robust and maintainable applications.
Get to Know more: https://analyticsjobs.in/question/can-you-please-tell-me-what-are-the-various-types-of-inheritance-in-java/
0 notes
inkpotsprite · 11 months ago
Text
Tumblr media
DAMIAN
5K notes · View notes
chloesimaginationthings · 11 months ago
Text
Tumblr media
IDK what William Afton expected to happen in FNAF..
7K notes · View notes
poorly-drawn-mdzs · 1 year ago
Text
Tumblr media Tumblr media
Thanks for listening to my sad backstory. Anyway, here's Wonderwall.
[First] Prev <–-> Next
3K notes · View notes
ambrosiagourmet · 1 year ago
Text
Tumblr media
Not sure how widely recognized this is but it’s fucking wild to me that miss kui just quietly snuck in the fact that most (if not all) of the differences between races only exist because of wishes they made to the Winged Lion.
Dwarves being strong? Lion wish. Elves being good at magic? Lion wish. All lifespan differences???? Lion wish, babey!
Not that the elves superiority shtick isn’t already BS, but it’s even funnier with the context that the only difference between them and humans is that, thousands of years ago, their leaders made a greedier wish to the demon that wanted to eat them.
5K notes · View notes
applejuucee · 2 months ago
Text
Tumblr media
1K notes · View notes
fertbutt · 1 year ago
Text
i love dragons!!! i love dragons as wild powerful beasts!!! i love dragons as intelligent kind companions!!! i love dragons as noble valiant steeds!!! i love dragons as magical wise elder beings!!! i love dragons as all-knowing gods!!! i love dragons as taxonomic diverse species!!! i love dragons as concepts and ideas!!! i love dragons as shapeshifters and deities!!! i love dragons as forces of nature!!! i love dragons as protectors of peace!!! i love dragons as destroyers of worlds!!! i love dragons as parallels to humans!!! i love dragons completely separate and removed from humans!!! i love dragons as anything and everything under the sun!!! i love dragons!!!!!
5K notes · View notes
toneelspeelster · 8 months ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
painted tongue by taylor byas
1K notes · View notes
arrgh-whatever · 2 months ago
Text
Tumblr media
Jaya!
747 notes · View notes
illegally-blind-and-deaf · 2 months ago
Text
my favourite LOTR thought at the moment is how absolutely confused Samwise Gamgee must have been when he truly met Peregrin Took for the first time. Of course he'd seen Pippin before, but he'd never actually interacted with him because Sam is just a humble gardener, while Pippin is the heir to the richest and most influential family in the whole Shire.
Poor Sam was most probably expecting a well-mannered young hobbit with very nice clothing (and perhaps a snobbish attitude), someone like Mr Frodo, or perhaps even quiet, calm Meriadoc Brandybuck. While both have a mischievous streak, they're still well-to-do and obviously so in how they act and dress and interact with one another.
There is absolutely no way he was expecting an absolutely feral hobbit-child with far too much energy and a mouth that prattles on a-mile-a-minute about absolutely everything his mind comes across. Or Pippin's favourite hobby of singing loudly in every possible scenario, or vanishing off to climb a tree or catch a fish in a nearby brook. Bare-handed.
This concept is absolutely hilarious to me and I honestly need more Sam and Pippin interactions, especially at the start of the journey when they're walking to Buckland.
610 notes · View notes
ficandkaboodle · 9 months ago
Text
At least once every day, I think about Primo’s costume and Nihil’s costume and I almost want to laugh because just look at this shit
Tumblr media Tumblr media
The contrast is just wild.
Primo’s costume is exactly that: It’s made with that same shiny materials as a Disney Princess dress-up outfit is. Meanwhile, Nihil’s is all extravagant and I look at that and I’m like “Yeah, that is indeed a Satanic Pope of the Satanic Church, mhm.”
And I absolutely understand why this is. I completely understand that when Tobias started Ghost, there just wasn’t enough in the budget for something too insane. I mean, Primo’s mask is a generic old man’s. They just needed enough of the costume to communicate what they were about and, for as costumey (derogatory) as it was, it did just that. Well done, Tobias and Primo.
But then. Ghost’s costuming just gets more and more intense and ornate with each passing guy until you wind up with Copia, who is essentially a blue art deco disco ball.
So you kinda just. Have to look at Primo and try to reconcile some sort of in-universe explanation as to why his father and brothers are all dripped to the devils while he’s. Like that.
Personally, I like the idea that his devotion to Satan means he doesn’t care as much about his appearance because, in his mind, obsessing over detail distracts from his message about his god.
Or, better yet, as we recognize that Primo was actually batshit insane and hated people, he probably was just asked by the satanic tailors what touches he would like done to his chasuble and he just went “Idfc we’re all trash and are gonna die anyway, just make sure it has red on or or whatever 😒”
713 notes · View notes
randomness-is-my-order · 9 months ago
Text
while reading the books, i remember wei wuxian’s relationship with jin ling hitting me especially hard. i was crying when the whole stabbing thing happened. but i truly adore what becomes of them and do you know why? because jin ling does something the others could never, something miraculous really––he actually unlearns the prejudice he’s been taught to hold against wei wuxian. he meets wwx, full of disdain, slowly learning about who wwx really is and it has nothing to do with wwx’s outward appearance. and when the truth is revealed, the internal warring for jin ling is plainly portrayed and even if he does give in to a hate intermingled with grief that he has internalised towards this one entity (wei wuxian was never a person in his mind, just the ‘killer’ of his parents, a phantom, before the events of the book happened), you can tell his heart has already turned, that it will keep turning and that’s what happens. you have jin ling, an orphaned child, who hated someone whom his mother loved dearly, because that man caused his parents’ death but it is such a commendable thing that wei wuxian was able to create a space in jin ling’s heart and jin ling was able to accept it. it’s the way both jin ling & jiang cheng blame the death of their parents on wwx but only the former was able to see wei wuxian clearly and actually forge a bond of love with him.
it’s the fact that if ANYONE in this story can actually rightfully hold a grudge against wei wuxian, it’s jin ling, but instead this teenager decides that wei wuxian is much too good and that having him as an uncle is lovely, after all.
759 notes · View notes
nikinikori · 11 months ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media
“What is honor compared to a woman's love? What is duty against the feel of a newborn son in your arms, [...] We are only human, and the gods have fashioned us for love. That is our great glory, and our great tragedy.”
— Maester Aemon Targaryen: "Game of Thrones"
748 notes · View notes
lizhly-writes · 2 months ago
Text
hi, i'm here to cross-examine liushen for a couple minutes. i'm SURE i can write a compelling liushen fic if i tried. it's not like shen qingqiu and liu qingge are uninteresting, so this should work. i should totally be able to do this.
first thought is perhaps a roleswap of some kind...? maybe if you switch the transmigrator roles between them? but i'm leery getting rid of shen yuan's transmigrator role, because that's a pretty big part of what makes him shen yuan... (though this does lead to a possibly interesting liujiu case where shen jiu is the transmigrator also and maybe they both want to kill lbh?)
wait! WAIT! what if we kill shen qingqiu.
liu qingge kills shen qingqiu during his qi deviation. shen qingqiu manages to save liu qingge and snap him out of it, but at the cost of his own life. liu qingge wakes up perfectly sane and with a body at his feet in lingxi caves. he is wracked with horror and guilt. he might not have particularly liked sqq, but that didn't mean he wanted the guy dead. after the demon invasion thing, he confesses to shen qingqiu's death, and everyone's like 1) well you were out of your mind 2) he probably tried killing you first 3) we didn't like him that much anyway, it is finnnne. yue qingyuan pardons lqg. yue qingyuan, by the way, is having a terrible fucking time right now, but pshaww we don't care about him.
anyway. liu qingge. he's having a shitty shit shit time too. he goes to sleep and has terrible nightmares -- memories of what really happened in the lingxi caves, of sqq trying to help him, of killing sqq over and over and over --
someone shakes him awake.
liu qingge startles and instantly draws his sword, because hey, bai zhan war god, it ain't the best idea to startle the guy if you want to stay alive.
of course this isn't really a consideration if you're already dead.
liu qingge wakes up to shen qingqiu's slightly-transparent face looking down at him.
that's right. this is a story in which liu qingge drags around shen qingqiu's ghost!
178 notes · View notes