Getsuyodev, Programming is mainly used when constructing an application. Programming requires knowledge of application domains, algorithms, and programming language expertise. Programming can be developed in different logic based on developer knowledge.

TQ – liaison précoce

Thèmes des Questions – C# (C Sharp)



Indiquez quels seront les résultats d’affichage de l’exécution du programme de gauche et expliquez  ces résultats.

using System;
 class classeA
 {
 public void methode1( ) 
 {
 Console.WriteLine("methode1- classeA");
 }
 }
 class classeB : classeA 
 {
 public void methode1( )
 {
 Console.WriteLine("methode1- classeB  ");
 }
 }
 class Exercice
 {
 public static void Main( ) 
 {
 classeA obj1 = new classeB();
 obj1.methode1( );
 classeB obj2 = new classeB();
 obj2.methode1( );
 Console.ReadLine();
 }
 }

Comments are closed, but trackbacks and pingbacks are open.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More