Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8053143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:45:29+00:00 2026-06-05T07:45:29+00:00

In Abc.hpp file the following information is defined: class Abc: public A { enum

  • 0

In Abc.hpp file the following information is defined:

class Abc: public A
{
 enum Ac { VAR };

   struct L{
      std::string s1;
      ::Class2::ID type;
      unsigned s;
      bool operator==(const L& l) const { return (type==l.type)&&(s==l.s)&&(s==l.s); }
   };

   class SS
   {
      public:
      virtual ~SS();
   };
   class IS {
      public:
      /// Destructor
      virtual ~IS();

   };

   class HashIndexImplementation;
   class HashIndex;

 void func(){}

  Abc& operator=(Abc&) {
    cout << "A::operator=(A&)" << endl;
    return *this;
  } //It gives me the error that the token '{' is not recognized

 Abc(Class2 & part);
};

For the above class aim at assigning with another class the following information for my purpose:

Abc d;
static Abc f;
f=d;

However, the code that I have written above does not work…The error that it throws is:

 no matching function for call to Abc::Abc()

EDIT: I am dealing with an entire hierarchy of classes therefore if I add on another constructor like Abc() then am forced to do changes in as many as 20 more classes…is there no other way which can be used for assignment.
Is there some means by which I may incorporate the other constructor.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:45:31+00:00Added an answer on June 5, 2026 at 7:45 am
    no matching function for call to Abc::Abc()
    

    You need to provide a constructor which takes no arguments if you want to instantiate your class object as:

    Abc d;
    

    This is because the compiler does not generate the default no argument constructor if you provide any constructor of your own. You provided your own copy constructor so compiler forces you to provide your own no argument constructor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

public class ABC{ public static void main(string... as) { char i; i = System.console().readLine(Hi
I've written a class template (in the file abc.hpp ): template <class Node> class
I have a function in header file Class2.hpp of the form: class Class2{ void
public class abc<X extends Z> implements Iterable<X> { protected ArrayList<X> list; public Iterator<X> iterator()
package test.abc; public abstract class Base { ... public static class ChildInner extends Base
public abstract class Abc<T> { public abstract void f1(T a); } abstract class Def<T>
char *buffer1 = abc; const char *buffer2 = (const char*) buffer; std :: string
Have a interface class abc { public: virtual int foo() = 0; ... }
package abc; class DependencyDataCollection { private int sNo; private String sessionID; private int noOfDependency;
class Abc { public Mycollection<Person> Persons { get;set; } } class MyCollection<T> : ICollect<T>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.