How to Call contract inside another contarct in solidity version 0.5.2?

How to Call contract inside another contarct in solidity version 0.5.2?

<strong>I'm using solidity version 0.5.2</strong>

I'm using solidity version 0.5.2

pragma solidity ^0.5.2;

contract CampaignFactory{ address[] public deployedCampaigns;

function createCampaign(uint minimum) public{ address newCampaign = new Campaign(minimum,msg.sender); //Error //here!!! deployedCampaigns.push(newCampaign); }

function getDeployedCampaigns() public view returns(address[] memory){ return deployedCampaigns; } }

I'm getting the error while assigning calling the Campaign contract inside CampaignFactory contract

TypeError: Type contract Campaign is not implicitly convertible to expected 
type address.
address newCampaign = new Campaign(minimum,msg.sender);

I have another contract called Campaign which i want to access inside CampaignFactory.

contract Campaign{
//some variable declarations and some codes here......

and I have the constructor as below

constructor (uint minimum,address creator) public{
    manager=creator;
    minimumContribution=minimum;

}


blockchain solidity

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Revolutionary Application of Blockchain Technology

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects

Five Blockchain Trends for You to Consider this Year

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects

Blockchain, The Next Level Transaction Medium for Banking and Financial Services

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects

What Is The Difference Between Blockchain And Bitcoin?

Get hands on experinece on block chain live industry experts with real world example at Block chain online Training. Enroll for free demo

Blockchain and the future of accountancy

Get hands on experinece on block chain live industry experts with real world example at Block chain online Training. Enroll for free demo