oop tag

60 questions


1 answers
97 views
0
To study object-oriented programming beyond grammar again? - - UML?

Until now, I have never done proper object-oriented programming as a job.So far, the only programming needed was procedure-oriented Python and C programming.c++? I can simply create, inherit, spin, et...

oop
2 years ago

1 answers
135 views
0
Multiple While questions

...... int sum=0, num=0, i=0;while(i<5){ while(num<=0) {printf(Enter a number greater than 0): , i+1); scanf(%d, &num); } sum+=num; num=0; i++;}printf(total: %d \n, sum);return 0;}If I ent...

2 years ago

1 answers
145 views
0
I want to write a code that ends when I enter the Python while door, how can I implement it?

n = input('Enter the student's name and grade)\nExample) David 537548 :')while n=='\n': n1,n2,n3,n4 = n.split() n2 = int(n2) n3 = int(n3) n4 = int(n4) L.append(n1) M.append([n2,n3,n4]) Avg.append(int(...


2 answers
94 views
0
There is a part of the sentence that I don't understand about the mistake

1.#include <stdio.h>int main(void){ double a,b; scanf(%lf %lf,&a,&b); while( a < b ){ printf(%0.2lf ,a); a = a+0.01; }}2.#include <stdio.h>int main(void){ int a,b; scanf(%d %d...

2 years ago

1 answers
68 views
0
Description of public, private, protected

I saw the professor's PPT that distinguished the types of methods in the class diagrampublic - Access control to disclose one's attributes or actions to the outside worldPrivate-Access control accessi...

2 years ago

1 answers
83 views
0
Do I have to write myself to call the constructor of the parent class?

Is this the only way to call a parent class constructor in a structure where C inherits B and B inherits A?class A(object): def __init__(self): print Creator Aclass B(A): def __init__(self): super(B...


1 answers
86 views
0
What do you mean by scanf in this while statement is 3?

while(scanf(%d %s %s, &s[n].id,s[n].name,s[n].major)==3) n++;What do you mean 3?

2 years ago

1 answers
122 views
0
What is the difference between an interface and an abstract class?

What is the difference between an interface and an abstract class?


1 answers
82 views
0
Python while question

Below is the width-first search algorithm codeGo back without errors and the answer is Thom.But in the while door, whilesearch_queue:while search_queue == True:I shouldn't have used it like thisWhat i...

2 years ago

1 answers
135 views
0
What is the role of the keyword static in the class?

package hello;public class Hello { Clock clock = new Clock(); public static void main(String args[]) { clock.sayTime(); }}When there was a code like this Cannot access non-static field in static meth...

« - 2 - »

© 2024 OneMinuteCode. All rights reserved.