Filter
Exclude
Time range
-
Near
method declare parameter constructor private void abstract class subclass super parentclass literally wdym #hah
3
2
211
Defensive stroke खेल्दै गर्दा पनि GenZ / GenZ भन्दै / १-२ उदाहरण कोट गर्दै वरिपरिका चुम्बक जस्ता जोसिला fielder जो हेल्मेट नलगाइकन short leg / silly mid on / silly pointमा fielding गर्न बसिरहेका छन्, उनीहरुलाई ताक्न सक्नु पनि खतरै कला हो 😉 रह्यो कुरो inheritance को, as per #OOP, a Child class or a subclass inherits some or all properties / methods from a SuperClass aka ParentClass. So no harm done or not a #nepobaby Personally I was and still am awestruck with the powerful aura of the चस्मावाल झुसेबुढा's photo and the 4 star beneath him hanging in my dad's bedroom wall. But I proudly say I am a through and through "Developmentarian" rather than a काॅग्रेस
चित्तौन कचेरीमा वरिष्ठ पत्रकार @basantabasnet को यो तगडा प्रश्नमा मेरो जवाफ को प्रयत्न ।
2
5
1,133
27 Sep 2024
In standard C to call a parent class version of a function you need to write [ParentClass]::SomeFunction It resolves the parent class namespace and calls SomeFunction by implicitly passing the _this_ pointer just like a normal function call !
1
5
325
Code сонирхогчдод зориулсан цуврал зөвлөмж: JavaScript-ийн Классын Бүтэц (Class Structure) гэдэг нь классыг хэрхэн зохион байгуулах вэ гэдгийг тодорхойлно. Класс нь объектын үйлдлүүдийг зохион байгуулахад ашиглагддаг. Классын бүтэц нь дараах элементүүдээс бүрддэг: 1. Class Declaration: Классыг class үгээр тодорхойлдог. class ClassName { } 2. Constructor: Классын инстанс үйлдэхдээ дотор хувьсагчидыг тохируулдаг. constructor(param1, param2) { this.param1 = param1; this.param2 = param2; } 3. Methods: Классын функцууд, объектын үйлдлүүдийг хэрэглэхэд ашиглагддаг. methodName(param) { } 4. Static Methods: Классын инстанс үйлдэлгүйгээр дуудаж болох метод. static staticMethodName(param) { } 5. Inheritance: Өөр классаасүйлдлүүдийг өвлөх боломж. class ChildClass extends ParentClass { } 6. Super Keyword: Inheritance үйлдэхдээ нэгдсэн Constructor-ыг дуудахад ашиглагддаг. constructor(param1, param2) { super(param1); this.param2 = param2; }
19
11
481
// ######### CHEATSHEET ALERT! ######## // Your cheatsheet content is here for Java! Java Basics Syntax: Classes: public class ClassName { ... } Methods: public static void methodName() { ... } Main Method: public static void main(String[] args) { ... } Variables: Declaration: int x; Initialization: int x = 5; Final Variables: final int MAX = 100; Data Types: Primitive: boolean, char, byte, short, int, long, float, double Reference: String, arrays, objects Control Flow Conditionals: if (condition) { ... } else if (condition) { ... } else { ... } switch (expression) { case value: ... break; } Loops: for (init; condition; update) { ... } while (condition) { ... } do { ... } while (condition); Arrays: Declaration: int[] arr = new int[5]; Initialization: int[] arr = {1, 2, 3}; Accessing Elements: arr[0] Strings: String str = "Hello"; Concatenation: str " World" Length: str.length() Substring: str.substring(1, 4) Object-Oriented Programming (OOP) Classes and Objects: Constructor: public ClassName() { ... } Instance Variables: private int id; Methods: public void method() { ... } Inheritance: class ChildClass extends ParentClass { ... } Interfaces: interface InterfaceName { void method(); } Implementation: class ClassName implements InterfaceName { ... } Polymorphism: Method Overloading: Same method name with different parameters. Method Overriding: Subclass method with the same name as superclass. Exception Handling : try { ... } catch (Exception e) { ... } finally { ... } Throwing Exceptions: throw new Exception("Message"); Collections List: ArrayList<String> list = new ArrayList<>(); Methods: add(), remove(), get(), size() Map: HashMap<String, Integer> map = new HashMap<>(); Methods: put(), get(), remove(), containsKey() Set: HashSet<String> set = new HashSet<>(); Methods: add(), remove(), contains() You are totally free to add-up anything in case I have missed something. Note : This cheatsheet covers core Java concepts but remember, Java has many more features, libraries, and frameworks like Spring, Hibernate, etc., which would require their own detailed summaries.
1
1
7
197
Replying to @pingroot404
Oui avec une méthode virtuelle (pure ou non) déclarée dans ParentClass et implémentée dans les ChildClass. Si tu le fais en C (?) il faut par contre que ton vecteur soit un vecteur de références ou pointeurs (smart ou non)
1
2
257
Replying to @pingroot404
Non. D'ailleurs quand tu stockes les objets DerivedClass dans ton vector ils sont "tronqués" à la taille de ParentClass. Et c'est pas "gros malin", c'est un exo / problème ultra classique en apprentissage de C . La solution est d'utiliser un vector de *pointeurs* >
1
2
285
Replying to @yet_anotherDev
That’s right! That means you can send messages to classes just like with “normal” objects, say for reflection: MyClass.ancestors (array of classes and modules my class inherits from); MyClass < ParentClass (true/false, is my class a child of parent class); etc
2
352
Replying to @the_duriel
I personally prefer class_name MyClass extends ParentClass (as it is consistent with other OOP languages such as Java or C )
1
19
669
9 Aug 2023
Day 17 #100DaysOfCode going good so far, spending atleast 1hr a day for learning Python. Topic: Inheritance in #pythonprogramming. Few points to remember: - Syntax: class ChildClass(ParentClass): - super() function to call parent method from derived class
2
13
258
.ParentClass ::v-deep .childClass { … } Vue.jsでstyleを書くとき、::v-deepを使うことで子コンポーネントにStyleを追加することができることを学んだ!! #駆け出しエンジニアと繋がりたい #webエンジニアと繋がりたい #プログラミング初心者と繋がりたい #Vue #JavaScript
1
15
19 Apr 2022
I introduced some changes to #KUNAI in order to better follow C 17 programming techniques, I removed "ParentClass" and "ParentMethod" classes used for polymorphism, and I replaced both for std::variant class github.com/Fare9/KUNAI-stati…

1
1
2
25 Oct 2021
Replying to @bwwgpro1
because you can't inherit from the same interface twice, just as a safety thing. more generally, if you have <T extends ParentClass, U extends ParentClass> foo(T a, U b) { return a.compareTo(b) } which compareTo do you call?
1
2
25 Oct 2021
this assignment we've been given is definitionally impossible. We are required to implement both `Comparable<ParentClass>` and `Comparable<ChildClass>` at the same time, which not only can't compile, but breaks the transitivity laws of Comparable
25 Oct 2021
this prof straight up does not know how interfaces work 🤦 i'm so frustrated w/ this class
1
9
anda que no class ParentClass { public: ~ParentClass() = default; virtual void F() = 0; } class ChildClass : public ParentClass { public: virtual void F() override {...} } putus noobs
verdades 👏👏
1
3
ParentClass and then GrandParentClass and ... and only then you can decide for either GodClass or BigbangClass depending on whether you're religious or a scientist. 🎆
2
5 Jun 2020
コンテンツブラウザの検索で一か八か「ParentClass==ClassName」って打ったけど、ちゃんと親クラスがClassNameになっているBPをピックアップできて良かった
1
1
3
Parental & Family Engagement: Curitas de Amor Parent Class - Thank you Mr. Carlos Rene Ramirez for a great presentation. Thank you parents for attending this class. #parentalandfamilyengagement #parentclass
4
Has your child been diagnosed and then you were sent on your way? Needing support/advice/tips, this is the class for you #anxiety #autism #autismteachingcompany #calmlittleminds #parentclass #asd #adhd
1