inheritance tag

29 questions


1 answers
96 views
0
What is object slicing?

I heard it somewhere, but it doesn't come outWhat is object sliding?


1 answers
84 views
0
To call a parent class constructor

How does C++ call the constructor of a parent class (even a parent's parent) in a child class?In Java, we could have called the parent class constructor on the first lineWhat should I do with C++


1 answers
127 views
0
The difference between Kind_of? / instance_of? / is_a? in Ruby

I want to know how and when kind_of? / instance_of? / is_a? is different.

2 years ago

2 answers
131 views
0
Is there a way to inherit the view controller that you created with the storyboard?

If you don't use the storyboard, it's a lot of inconvenience.Segway is also intertwined, and it's not a good way, but it's inconvenient if you don't use a storyboard because you put a table view in a ...


1 answers
82 views
0
(java)Inheritance and constructor call problems

// Parent Classclass Person { private String name; private int age; public Person(String name, int age) { this.name = name; this.age = age; } public void setName(String name) { this.name = name; } p...


1 answers
112 views
0
Java arraylist, inheritance, abstract class questions

Hello, I am an undergraduate studying coding.In the management class, ArrayList<Member> members = newArrayList<Member>();members.add (new member 1 (Hong Gil-dong, string, string, int);memb...


1 answers
132 views
0
Inheritance question for class

class cal: def __init__(self, one, two): self.one=one self.two=two def add(self): result=self.one+self.two return result def mul(self): result=self.one*self.two return result def sub(self): res...

2 years ago

1 answers
96 views
0
Question about inheritance example of class

Define the bike class so that the following code works: The terminal tram class inherits the car class.bicycle = bicycle (2,100)Bicycle.Price100The answer to this question is class car: def__init__(se...

2 years ago

1 answers
123 views
0
Add constructor to c++ inheritance class code error

This is the process of adding a constructor to an existing inheritance class code.Continue No instance of constructor MyFriendDetailInfo::MyFriendDetailInfo matching argument listMyFriendDetailInfo:::...

« - 3 -

© 2024 OneMinuteCode. All rights reserved.