Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity diference protected and virtual

public class Father
{
   public virtual void A(){}
   protected virtual void B(){}
}

public class Son:Father
{
   public void C()
   {
     //Here you can access A & B method……
   }
}

Son s = new Son();
s.A();  //You can access this
s.B();  //No!You CANNOT!
Comment

PREVIOUS NEXT
Code Example
Csharp :: wpf repository pattern query async with includes properties 
Csharp :: c# monogame docs 
Csharp :: int to binary string with 4 characters 
Csharp :: UPA Error 
Csharp :: C# Compound Assignment Operator 
Csharp :: how to do if statement based on date in asp net c# 
Csharp :: object escape player unity 
Csharp :: console.out 
Csharp :: how to refrence a variable from other script in c# 
Csharp :: push vaiable in array c# 
Csharp :: how to collect input from a user in discord bot c# 
Csharp :: sql to linq converter online tool free 
Csharp :: The anti-forgery cookie token and form field token do not match. 
Csharp :: convert physical path to virtual path in c# 
Csharp :: how to unfocus a richtextbox windows forms 
Csharp :: erlang start net kernel 
Csharp :: using randomly chars to build a string 
Csharp :: asp.net stop page jumping to top on click 
Csharp :: unity round image 
Csharp :: notification platform not available c# 
Csharp :: unity check if transform doent have parent 
Csharp :: c# ipaddress to integer 
Csharp :: random.choice c# 
Csharp :: c# string .contains against empty string returns 
Csharp :: access form in a folder C# 
Csharp :: Library dll unless netloaded by AutoCAD 
Csharp :: txtbox.fous in c# 
Csharp :: properties vs field c# 
Csharp :: join 2 list rows into one row and add totals fields C# 
Csharp :: trigger checkbox combobox wpf 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =