constructor tag

35 questions


2 answers
111 views
0
No instance of constructor matching argument list.

#define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <cstring>using namespace std;class MyFriendInfo{private: char* name; int age;public: MyFriendInfo(const char* fname, int fage) :...

2 years ago

2 answers
64 views
0
This is a question from a beginner who doesn't know the concept of Java creator

package test1;public class test1 {public static void main(String[] args) { Animals dog = new Dog(3); System.out.println(dog.age);}}================================================package test1;publ...

2 years ago

1 answers
93 views
0
Java programming constructor overloading

Book(){}Book(String title, String author) { this.title = title; this.author = author;}Is it overloaded if I do this?


1 answers
82 views
0
No suitable default constructor available

No suitable default constructor available Error appears This is one of the header files of the fruit-buying programThere's only one constructor error stuck here.class FruitSeller{private: const int AP...

2 years ago

1 answers
108 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:::...

« - 4 -

© 2024 OneMinuteCode. All rights reserved.