subject

Given a class window, with integer data members width, height, xpos, and ypos, write the following two constructors: - a constructor accepting 4 integer arguments: width, height, horizontal position, and vertical position (in that order), that are used to initialize the corresponding members. - a constructor accepting 2 integer arguments: width and height (in that order), that are used to initialize the corresponding members. the xpos and ypos members should be initialized to 0.

i get an error stating my ypos is incorrect

i have tried and this is all i could get

window(int w, int h, int x, int y)

{
width =w;
height = h;
xpos = x;
ypos = y;
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
question
Computers and Technology, 24.06.2019 10:20
Identify the publisher in this citation: carter,alan.a guide to entrepreneurship.new york: river’2008.print.
Answers: 3
question
Computers and Technology, 24.06.2019 13:00
Which best describes the condition under which the unicode output is the same as plain text ?
Answers: 1
question
Computers and Technology, 25.06.2019 01:40
The instantiation of an endpoint in a potential tcp connection is know as
Answers: 1
You know the right answer?
Given a class window, with integer data members width, height, xpos, and ypos, write the following t...
Questions
question
Mathematics, 17.03.2021 23:50
question
Mathematics, 17.03.2021 23:50
question
English, 17.03.2021 23:50
question
German, 17.03.2021 23:50
question
Mathematics, 17.03.2021 23:50